[
http://issues.apache.org/jira/browse/TAPESTRY-409?page=comments#action_12316458
]
Jonas Maurus commented on TAPESTRY-409:
---------------------------------------
There is more to this bug. At least for Checkbox-components the ID generation
is off in Beta 2:
<!-- page definition -->
<component id="bookkeeperRCB" type="Checkbox">
<binding name="selected" value="hasBookkeeperRole" />
</component>
<component id="adminRCB" type="Checkbox">
<binding name="selected" value="hasAdministratorRole" />
</component>
<!-- page template -->
<tr>
<td><input jwcid="bookkeeperRCB" type="checkbox" value="Y" /></td>
<td><label jwcid="@FieldLabel" for="bookkeeper"
field="ognl:components.bookkeeperRCB"
displayName="message:form.roles.bookkeeper">Bookkeeper</label></td>
</tr>
<tr>
<td><input jwcid="adminRCB" type="checkbox" value="Y" /></td>
<td><label jwcid="@FieldLabel" for="admin"
field="ognl:components.adminRCB"
displayName="message:form.roles.administrator">Administrator</label></td>
</tr>
yields:
<tr>
<td><input type="checkbox" name="bookkeeperRCB" id="bookkeeperRCB"
value="Y"/></td>
<td><label for="bookkeeperRCB$0">Bookkeeper</label></td>
</tr>
<tr>
<td><input type="checkbox" name="adminRCB" checked="checked" id="adminRCB"
value="Y"/></td>
<td><label for="adminRCB$0">Administrator</label></td>
</tr>
as you can see the generated fieldnames ("bookkeeperRCB$0"...) are wrong. This
always results in a stale-link exception.
> second FieldLabel behaivour
> ---------------------------
>
> Key: TAPESTRY-409
> URL: http://issues.apache.org/jira/browse/TAPESTRY-409
> Project: Tapestry
> Type: Bug
> Components: Framework
> Versions: 4.0
> Reporter: Ron Piterman
>
> Using two FieldLabel components for the same Field causes an exception. Don't
> know if that is wished.
> BUT: placing the second one after the field results in a permanent stale link
> when submitting.
--
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]