Perhaps using IValidationDelegate#setFormComponent and ValidationDelegate#recordFieldInputValue to store the new values would work? It feels like a hack to me, but that doesn't mean it won't work.

http://jakarta.apache.org/tapestry/tapestry/apidocs/org/apache/tapestry/valid/IValidationDelegate.html#setFormComponent(org.apache.tapestry.form.IFormComponent)
http://jakarta.apache.org/tapestry/tapestry/apidocs/org/apache/tapestry/valid/IValidationDelegate.html#recordFieldInputValue(java.lang.String)

Or else you might get away with calling IValidationDelegate#clear and then recording your error. That might work as well.

http://jakarta.apache.org/tapestry/tapestry/apidocs/org/apache/tapestry/valid/IValidationDelegate.html#clear()

If none of it works, well, then I blame it on lack of coffee - it's well beyond midnight here. ; )

-Filip

Mark Reynolds skrev:
I have a page with a form for editing an object. I am using optimistic locking. I catch the optimistic lock exception in the listener method and add a message to the validation delegate indicating that another user changed the record. In this case, I want to have the form show the current values rather than the values just submitted by the user. Any tips for doing this?

Thanks.

-- Mark R

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

Reply via email to