You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by gauravchopra <ga...@gmail.com> on 2011/03/16 13:42:46 UTC

Disable Validation of a field

Hi

I am using Tapestry 5.2.2 version. Is there any way to disable the
validation on a field on some event?
say
I have a checkbox and a textfield on a form, 
textfield - 
I want the validation on field email to be disabled or removed when I click
the checkbox. What will be approach to implement this in tapestry?

Appreciate your help!!!

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Disable-Validation-of-a-field-tp3779681p3779681.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: Disable Validation of a field

Posted by based2 <ba...@free.fr>.
http://jumpstart.doublenegative.com.au/jumpstart/examples/input/novalidationbubbles1
http://www.packtpub.com/article/user-input-validation-in-tapestry-5
http://tapestry.1045711.n5.nabble.com/Disabling-onBlur-field-validation-td2416314.html
http://tapestry.apache.org/input-validation.html
http://code.google.com/p/tapestry-validator/

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Disable-Validation-of-a-field-tp3779681p3839414.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: Disable Validation of a field

Posted by gauravchopra <ga...@gmail.com>.
textbox code in tml is : 

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Disable-Validation-of-a-field-tp3779681p3779790.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: Disable Validation of a field

Posted by LLTYK <LL...@mailinator.com>.
You can use a FormFragment to hide and disable the field. Or you can remove
the builtin required validation and manually decide whether it's required in
onValidateForm.

--
View this message in context: http://tapestry-users.832.n2.nabble.com/Disable-Validation-of-a-field-tp6176353p6180826.html
Sent from the Tapestry Users 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: Disable Validation of a field

Posted by gauravchopra <ga...@gmail.com>.
Yes I am using the JS to disable the field, but the tapestry validation
remains there. When i click on submit, it says that the field is required.

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Disable-Validation-of-a-field-tp3779681p3869746.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: Disable Validation of a field

Posted by LLTYK <LL...@mailinator.com>.
Do you still use the textfield even when the checkbox is checked? If not, you
can make some js for the click event of the checkbox and simply disable the
textfield in your js. I suspect this disables validation.

--
View this message in context: http://tapestry-users.832.n2.nabble.com/Disable-Validation-of-a-field-tp6176353p6180363.html
Sent from the Tapestry Users 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