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 2013/01/11 18:05:46 UTC
Clientside validators returning null value to serverside
validation.
Hello, I have clientside validation disabled, but I'm using clientside
validators such as minlength=10 etc. I'm doing all my validation serverside,
however I'm running into an issue where I need to retrieve the offending
value on the backend in order to rebuild and return my json object.
Example
10 digits have been entered into id="myfield" with a minimum of 11 digits
required. Using t:validate="minlength=11", the app throws a serverside
validation as expected. On my backend, I temporarily build an object to hold
my values so that the form can reload and I can repopulate all the values.
This is done to handle ajaxformloop validation issues. Anyhow, within my
onValidate method, id="myfield" is seen as having a null value, thus the
value never makes it into my holder object which ultimately never makes it
back into my afterRender json object.
Does anybody have any thoughts on this?
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Clientside-validators-returning-null-value-to-serverside-validation-tp5719258.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: Clientside validators returning null value to serverside
validation.
Posted by George Christman <gc...@cardaddy.com>.
After thinking through this issue much more deeply, I believe tapestry is
behaving as expected keeping bad data out of my defined objects. I think
I'll just need to rethink my approach. Perhaps there is a way to pull the
bad value from the validation tracker?
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Clientside-validators-returning-null-value-to-serverside-validation-tp5719258p5719259.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