You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by George Christman <gc...@cardaddy.com> on 2012/05/21 19:48:08 UTC
Custom Validation with AjaxFormLoop component
hello, I've disabled client validation and currently going to rely on server
side validation. My validation is dynamic, so it's determined by the backend
at render and submit. The validation works perfectly, however when you add a
new row using AjaxFormLoop and click the submit button for the first time,
the error shows up in the error list, but does not outline the textfield or
mark the label red. If you click it a second time, the label and box are
outlined in red.
I'm assuming this is being handled with some after render script, but isn't
being updated until the page has been refreshed. Does anybody know how to
fix this issue so all new fields in the AjaxFormLoop are marked in red when
validation errors are present?
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Custom-Validation-with-AjaxFormLoop-component-tp5713091.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Custom Validation with AjaxFormLoop component
Posted by George Christman <gc...@cardaddy.com>.
Update, the validation decorator method isn't being called when adding a new
row with AjaxFormLoop until afterthe page renders for the first time with
the new row. At that point it appears to be adding the js script to the
page. Any suggested work arounds?
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Custom-Validation-with-AjaxFormLoop-component-tp5713091p5713311.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org