Hybrid View

  1. #1
    Sencha User
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    29
    Vote Rating
    0
    cupakob is on a distinguished road

      0  

    Default FileUploadField and setName()

    FileUploadField and setName()


    Hi *,

    I'm trying to set a name attribut for the input field, but the setName("aaa") add a name to the browse button. How can i set the name parameter for the input field?

    Regards

  2. #2
    Sencha User chalu's Avatar
    Join Date
    Feb 2008
    Location
    Benin City, Nigeria
    Posts
    480
    Vote Rating
    1
    chalu is on a distinguished road

      0  

    Default


    This sets the name of the upload-field.
    Code:
            FileUploadField ecconetFile = new FileUploadField();
            ecconetFile.setName("ecconetfile");
            ecconetFile.setFieldLabel("Ecconet File");
            ecconetFile.setAllowBlank(false);

  3. #3
    Sencha User
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    29
    Vote Rating
    0
    cupakob is on a distinguished road

      0  

    Default


    I have the same

    Code:
    FileUploadField file = new FileUploadField();
    file.setName("aaa");
    But the name attribute ist for the browse button and not for the field.

    Anyway...I dont need it anymore, i have an other solution for my problem.

  4. #4
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    I cannot reproduce this. Which version of GXT are you using? I testes this against the latest one, GXT 2.2.

  5. #5
    Sencha User
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    29
    Vote Rating
    0
    cupakob is on a distinguished road

      0  

    Default


    I'm using gxt 2.1.1...

  6. #6
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Can you maybe try this against GXT 2.2?

Similar Threads

  1. FileUploadField example
    By willbrady in forum Ext GWT: Discussion
    Replies: 7
    Last Post: 4 Nov 2011, 7:19 AM
  2. FileUploadField and IE
    By cupakob in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 17 Jun 2010, 1:46 AM
  3. Help with fileuploadfield
    By ald_2008 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 1 Jun 2009, 6:55 AM
  4. [FIXED] Beta 2: Field.setName() is not related to Field.getName()
    By dangeruss in forum Ext GWT: Bugs (1.x)
    Replies: 7
    Last Post: 7 Sep 2008, 6:37 PM
  5. Bug with setName for Field?
    By jeff.levine in forum Ext GWT: Bugs (1.x)
    Replies: 0
    Last Post: 5 Jun 2008, 12:16 PM

Thread Participants: 2

Tags for this Thread