Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Aug 2009
    Posts
    96
    Vote Rating
    1
    r4nd7263 is on a distinguished road

      0  

    Default CheckBox form submit value

    CheckBox form submit value


    How do I set the CheckBox value that will be submitted via a form post (FormPanel)?

    Our server is currently accepting "true" or "false" values which worked with GXT2 checkbox. But GXT3 seems to submit "on" when CheckBox is checked and no form value if not checked. It would seem awkward to update the server side code because of UI framework upgrade.

  2. #2
    Sencha User
    Join Date
    Aug 2009
    Posts
    96
    Vote Rating
    1
    r4nd7263 is on a distinguished road

      0  

    Default


    I found out our old code actually call checkbox.getValue().toString() and put the string value in a hidden field. So my mistake to assume the checkbox submit value had changed in GXT3.

    I am still curious though if there is a way to set checkbox submit value directly.

  3. #3
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,716
    Vote Rating
    87
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    Submitting by a form is owned by the browser, GXT doesn't control that. Apparently 'on' is the default value of a checkbox if you don't assign a value.

    The way that checkboxes work in html forms is that they are given a name and a value, and if *checked*, it will pass that name/value pair to the server. For example, this lets a page have three check boxes each with name 'requirements', with values 'free internet', 'laundry facilities', and 'complimentary breakfast', so that each of those could be checked to pass all three pairs to the server.

    GXT leaves this at the default, but if you want this uniformly, you could create an appearance (to be used across your app with replace-with) where value is always true.

Thread Participants: 1