Hi, Beginner question with Form handling: I have a panel that accepts name value pairs in text fields.On the form there is an ajax button to add a value, an ajax button to remove a value and an actual form submit button. I have a onSubmit handler for the form that actually processes the NV pairs once the user has finished. When either the plus or minus button are pressed I update the form's model and have the form rerenderd. For this to work correctly I need the form's model updated but not have the form's onSubmit handler called. Setting default form processing to false on the twoajx buttons did not work as the model was not updated correctly (NPEs thrown)
I have overridden the two buttons' onSubmit() handler to set a flag (as these seem to be called before the form's onSubmit()) and check for this flag in the form's onSubmit and save or ignore the submit accordingly. Is this the right way to do this? I don't want to use another button to do the 'true' form submission as I need to have this panel embedded in a wizard as well as an ordinary page. Thanks Sumit
