I haven't tried it and don't have the code in front of me, but you might be able to call setDefaultFormProcessing(false) on your submit button, and then in your submit code, call the validate method manually. If it succeeds, persist and move on, if not, persist and stay on page, allowing errors to appear.
Note that this will obviously give you some challenges - validation makes sure it's safe to go into the DB. If it's supposed to be a numeric field and they but in "br549", then it won't ever get converted and set on your model, so that won't be a problem. But if they put in a string that's twice as long as your DB column, and you persist despite validation, you will get an error (or however your system handles it). On Wed, Mar 4, 2009 at 8:01 PM, novotny <novo...@gridsphere.org> wrote: > > Hi, > > I have a form with 8 required fields. I'd like it if even if they just fill > out 4 of the fields, I can go ahead and persist those field answers to the > database and still remind them to fill out the remaining fields. What is > the > hook method that I override to persist the valid fields? > > Thanks, Jason > -- > View this message in context: > http://www.nabble.com/how-to-save-%22validated%22-fields-in-a-form-even-if-entire-form-still-needs-work-tp22343848p22343848.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Jeremy Thomerson http://www.wickettraining.com