Hi,

Sorry this was so painful to implement. If you can get this refresh to hit a specific listener method then you can clear out any server side validation errors by calling:

Form.getDelegate().clearErrors().

If that doesn't work let me know and I'll dig further.

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.

Thanks
 Zsombor

-------------------------------------------------------------------------
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





--
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around dojo/tapestry/tacos/hivemind.
-------------------------------------------------------------------------
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

Reply via email to