I've written some code that allow spring to validate objects for me using the
org.springframework.validation.Validator interface. 

I've also got some code that maps the ValidationErrors back to wicket
fields.

The spring validators take an entire object rather than field by field.   My
question is, during the validation phase, how should I invoke this
validator?

Basically I need the modelObject of the form to be updated (if possible)
with submitted values before I call the Spring validator.

How should I go about doing this?

I can see a todo in the javadoc for IFormValidator -  "make IFormValidator
extends IValidator where IValidatable's value is form.modelobject and error
reports on form - that way IBehaviorProvider can extend IValidator"

However currently the form.getModelObject is returning the non updated (from
submit) object.

Please help :)
-- 
View this message in context: 
http://www.nabble.com/IFormValidator---I-need-some-clarification-please-tp18481522p18481522.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to