Client validation shows empty alertDialog when there is a TextField with 
bounded custom id
------------------------------------------------------------------------------------------

                 Key: TAPESTRY-1122
                 URL: http://issues.apache.org/jira/browse/TAPESTRY-1122
             Project: Tapestry
          Issue Type: Bug
          Components: Framework
    Affects Versions: 4.1.1
         Environment: Firefox 1.5 / Tomcat 5.0.28
            Reporter: Grzegorz
            Priority: Critical


On a page I have TextField component with bounded custom id, ex:
myPage.page:
<component id="textField" type="TextField">
        <binding name="id" value="ognl:fieldId"/>
        <binding name="value" value="ognl:fieldValue"/>
        <binding name="displayName" value="literal:Some field"/>
        <binding name="validators" value="validators:required"/>        
  </component>

myPage.java:
public String getFieldId(){
        return "somePrefix_"+"beanPropertyName";
}

Rendered html contains something like this:
<input type="text" name="textField_0" value="" id="somePrefix_beanPropertyName" 
/>

Submiting this form shows empty dojo alertDialog. Validation mechanism is 
detecting that one component is required, but can not match validation error 
with right message because of input name<>id.

tapestry.form.registerProfile contains everything what is required, all 
validators and messages linked with right input id (not name).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to