I forgot to mention, I'm using the XML based ActionName-validation.xml mechanism this time around vs. rolling my own validation code in my model's validate() methods since I'm working with static forms this time.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter White
Sent: Tuesday, November 18, 2003 2:11 AM
To: [EMAIL PROTECTED]
Subject: [OS-webwork] Pre-validation Processing QuestionHi gang,
I have an action that will either submit a form's contents, if it passes validation, or dispatch the form for completion if it doesn't pass validation. Basically, it's my way of being lazy so I don't have to write one action to render a form and post to another action to process it.
However, I've run into a hitch because the form will always fail validation until it is completed but I need to populate a drop-down field on it from a List attribute in the action which never gets populated because validation fails… So, what are my options here? Should I stick with two separate actions or use a component or interceptor to populate my list? Are there any other options that webwork provides that I haven't considered?
Thanks!
Peter