I am using tap 4 beta 6 and have a form with client side javascript enabled:
<form jwcid="[EMAIL PROTECTED]" listener="ognl:listeners.formSubmit"
delegate="ognl:beans.delegate" clientValidationEnabled="true">
also in the form is a field for validation:
<span jwcid="@PropertySelection" model="ognl:someModel"
value="ognl:someValue" displayName="Some Value"
validators="validators:required"/>
and to submit the form:
<input type="submit" jwcid="@Submit" value="Something"
selected="ognl:whichButton" tag="literal:add" onclick="return
window.confirm('Are you sure?');"/>
The client-side validation is never fired but the server-side validation
works fine, using:
IValidationDelegate validationDelegate = (IValidationDelegate)
getBeans().getBean("delegate");
if (validationDelegate.getHasErrors()) {
return;
}
I know I have not put all the detail but hopefully enough. Any ideas?
Also what is the way on running using the client-side validation scripting
within your own javascripts before doing your own further javascript
validation.
Thanks inadvance,
Paul
p.s. the browser is Firefox (Mozilla). I have tried on os x and windows
platforms with no success. The above code is an example and may not be
exactly correct. I think my problem is that I am missing something
fundamental. I have had similar code working correctly in tap 3.0.3.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]