Welcome to the club (of the potential OptionalValidator users). As one of the initiants (together with Mike), I think I can say there is not an easier way to do it. And OV is not yet working perfectly when you do not use facelets. There are some loose ends to be fixed...
We tried to make live simpler, but did not find a way in countless hours of chat-discussions... regards Alexander -----Original Message----- From: Dave Brondsema [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 5:06 PM To: MyFaces Discussion Subject: Re: do conversion and update model values, but skip validation? Dave Brondsema wrote: > I need to implement a "Save as Draft" button for a page I'm working on. > I want to save all the data in the model, so I need to convert values > to the right data type and update the model values. But I do not want > to do any other validation. Is this possible? immediate="true" skips > too much. Can I use a phase listener before and after validation to do > this somehow? Or perhaps I have to use immediate="true" and then invoke > some lifecycle methods in my saveAsDraft() backing bean method? > > Any suggestions? > > thanks, > To answer my own questions, immediate="true" on the "Save as DRAFT" button means that it is processed before anything else, so the other data isn't even available. Explained in detail at http://wiki.apache.org/myfaces/How_The_Immediate_Attribute_Works It looks like I can do what I need by using http://wiki.apache.org/myfaces/OptionalValidationFramework but unfortunately that requires significant changes to all my forms that need "save as draft" functionality. -- Dave Brondsema Software Developer Cornerstone University