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.
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.