refer this thread - i ran into a similar problem.
http://www.nabble.com/AjaxRefresh-button--tf2071595.html
On 8/16/06, Zsombor <[EMAIL PROTECTED]> wrote:
Hello!
I've the following problem with field validation in AjaxForm. This is the bare bone skeleton of the page:
<form jwcid="[EMAIL PROTECTED]:AjaxForm">
<span jwcid=" [EMAIL PROTECTED]:AjaxEventSubmit"
updateComponents="ognl:{'formfield_xyz'}"
clientSideValidationEnabled="ognl:false"
/>
<input jwcid="@PropertySelection" validators="validators:required" model="ognl:mainModel"/>
<input id="formfield_xyz" jwcid="@PropertySelection" validators="validators:required" model="ognl:dependentModel" />
<input jwcid="@AjaxSubmit" listener="listener:performAction">
</form>
The task was to update the second propertySelection when the main propertySelection is changed. It works now - but I figured out, that it is crucial to not to name the form as 'form', but use some other name, eg 'mainForm', because some strange bug in the _javascript_ side. Anyway, that's not the problem for me. The problem is that, when the main property selection changes, the second selection is rendered, with a validation message, which states, that the dependant field is a required field. Not only it is ugly, and brakes the layout of the page, but it's a bit suprising for the user, because she doesn't even touch that field.
How can I disable validation during this refresh - request? I need the validation messages, but only when the submit button is pressed.
ThanksZsombor
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel
--
Thanks, Karthik
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Tacos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tacos-devel
