No difference, I changed the form to:
<form jwcid="[EMAIL PROTECTED]" clientValidationEnabled="ognl:true"
listener="listener:confirm">
T&C:<input jwcid="[EMAIL PROTECTED]" value="ognl:readTC"
validators="validators:required"/>
<input jwcid="@Submit" type="submit" name="Submit" value="Confirm"/>
</form>
On 24 Jun 2006, at 13:33, James Carman wrote:
What happens if you take the listener off the button and put it on
the form
itself.
-----Original Message-----
From: Adam Henderson [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 24, 2006 8:23 AM
To: Tapestry users
Subject: Checkbox required validation not working
Hi All,
I'm doing a simple form that has a checkbox which must be checked in
order to submit the form:
<DEFANGED_form jwcid="[EMAIL PROTECTED]"
clientValidationEnabled="ognl:true">
T&C:<input jwcid="[EMAIL PROTECTED]" value="ognl:readTC"
validators="validators:required"/>
<input jwcid="@Submit" listener="listener:confirm" type="submit"
name="Submit" value="Confirm"/>
</form>
but if I can still submit my form without the checkbox being checked,
so it looks like no validation is taking place.
When the page renders the js generated at the base of the html is:
<DEFANGED_script language="JavaScript" type="text/javascript"><!--
Tapestry.register_form('myForm');
Tapestry.set_focus('tandcCheckbox');
// --></script>
I'm obviously missing a trick but I can't see what it is?
Thanks,
Adam.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]