When in a form ,only one required validator.the dojo dialog can't be shown.

ex:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE page-specification PUBLIC "-//Apache Software Foundation//Tapestry
Specification 4.0//EN" "
http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>

<page-specification class="corner.orm.tapestry.page.PoFormPage">
 <description>corner.demo.model.one.A Form Page</description>
 <bean class="org.apache.tapestry.valid.ValidationDelegate"
name="delegate"/>
 <property persist="entity" initial-value="new corner.demo.model.one.A()"
name="entity"/>
 <component type="Form" id="AForm">
   <binding value="ognl:beans.delegate" name="delegate"/>
   <binding value="ognl:true" name="clientValidationEnabled"/>
   <binding value="listener:doSaveEntityAction" name="success"/>
   <binding value="listener:doCancelEntityAction" name="cancel"/>
 </component>
 <component type="TextField" id="nameField">
   <binding value="message:name" name="displayName"/>
   <binding value="translator:string" name="translator"/>
   <binding value="ognl:entity.name" name="value"/>
    <binding name="validators" value="validators:required"/>
 </component>
   <component type="TextField" id="passwordField">
   <binding value="message:password" name="displayName"/>
   <binding value="translator:string" name="translator"/>
   <binding value="ognl:entity.password" name="value"/>
 </component>
</page-specification>


Jun Tsai

--
Welcome to China Java Users Group(CNJUG).
http://cnjug.dev.java.net

Reply via email to