Hi! My problem: 1. I have a form 2. The form has checkboxes 3. The form has other fields
The checkboxes are used to disable specific fields in the form. Whenever the user changes the checkbox state, I want to use AjaxEventBehavior or similar to update the form components dependent on the particular checkbox (just to set them enabled/disabled). The problem is that OnChangeAjaxBehavior does not submit the form component values to the server so their original model values displayed, which does not look cool if the user just wrote something there... I tried using AjaxFormSubmitBehavior but that ended up clearing the fields completely after toggling them into disabled state and back. The funny thing, again, is that I can get almost what I want by using "wantOnSelectionChangedNotifications()=true". But that's not ajax, it scrolls my page ;) How to make it ajax on a checkbox? ** Martin --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
