[ http://issues.apache.org/jira/browse/TAPESTRY-1122?page=all ]
Jesse Kuhnert updated TAPESTRY-1122:
------------------------------------
Summary: AbstractForm id is not always equal to name. (was: Client
validation shows empty alertDialog when there is a TextField with bounded
custom id)
Priority: Blocker (was: Critical)
Partially fixed this but now I see that form component name fields are not
always equal to an ID field.
This is obviously not fitting in with my master plan to have
IComponent.getClientId() always return the same thing and have ids always work
in all situations. Needs to be fixed.
> AbstractForm id is not always equal to name.
> --------------------------------------------
>
> 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 Mrowka
> Assigned To: Jesse Kuhnert
> Priority: Blocker
>
> 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]