I have a form where there are two buttons- save and submit. I am successfully submitting the page but I have a problem while saving the form. "Save" should allow me to save whatever filled in the page. There might be fields which has "required" attribute "true". But, when someone clicks save, it shouldn't care about required field. How would I achieve in JSF 1.2/richfaces 3.3?
Required means required. Not "required only when I click this button". Using RichFaces, you can limit the part of the page submit to omit some "required" controls from the data passed to the JSF lifecycle by use of the a4j:region element, but that isn't going to help if you have required and non-required items in the same region.
For that, you have to do things the hard way. Take the "required" attribute off the optional items and check them in the action processor instead.
Customer surveys are for companies who didn't pay proper attention to begin with.
Do you mean- instead of having required= "true", I have to have action Listener where it checks required field? I am not sure if that wrks, I need to save whatever have filled in the page and retireve them later.