got5/tapestry5-jquery — Issue #97: Client side validation doesn't work when there are more then one submit button.
Author: Emerald-AnAg
Created: 2011-11-16 12:14:11+00:00
State: open

When FORM contains more then one SUBMIT Button and when the form is submitted, the client side validation doesn't work i.e. it is completely disabled.
Sample TML:
1st - input t:type="submit" type="submit" t:mode="normal" t:id="submitButton" id="submitButton" t:value="Submit" t:mixins="jquery/button"
2nd - input t:type="submit" type="button" t:mode="cancel" t:id="resetButton" id="resetButton" t:value="Reset" t:mixins="jquery/button"
3rd - input t:type="submit" type="button" t:mode="cancel" t:id="cancelButton" id="cancelButton" t:value="Cancel" t:mixins="jquery/button"

Ideally, what should happen is, the client side validation should monitor t"mode of the submit button.
When t:mode="normal" the client side validation should work and in case of t:mode="cancel" the client side validation should by-passed (i.e. form should be submitted without client side validation).

I have tested this code without JQuery configuration i.e. Tapestry (5.2.6) implementation and the code is working correctly.

But in case of Tapestry (5.2.6)/JQuery(2.6.0) implementation, the client side validation doesn't work i.e. it is completely disabled.

Is this known issue?

Please suggest.

Thanks.