You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Matt Raible (JIRA)" <de...@tapestry.apache.org> on 2007/08/23 01:24:30 UTC
[jira] Issue Comment Edited: (TAPESTRY-234) contrib:Table can't
render column blocks when column name has period in it
[ https://issues.apache.org/jira/browse/TAPESTRY-234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12521963 ]
mraible edited comment on TAPESTRY-234 at 8/22/07 4:22 PM:
---------------------------------------------------------------
This doesn't quite work as expected - maybe it has something to do with TAPESTRY-881. My column headers are rendered as user_username, user_email, user_enabled, etc. when in 4.0.x, they got rendered with i18n keys.
Here's my table:
<table jwcid="table@contrib:Table" class="table contribTable" id="userList"
rowsClass="ognl:beans.rowsClass.next" row="ognl:row"
columns="user.username:username, activeUsers.fullName:fullName, user.email:email, user.enabled:enabled"
source="ognl:users" initialSortColumn="username"
arrowUpAsset="asset:upArrow" arrowDownAsset="asset:downArrow">
<tr jwcid="user_usernameColumnValue@Block">
<a jwcid="@DirectLink" listener="listener:edit" parameters="ognl:row.id">
<span jwcid="@Insert" value="ognl:row.username"/>
</a>
</tr>
<tr jwcid="user_emailColumnValue@Block">
<a jwcid="@Any" href="ognl:+'mailto:'+row.email">
<span jwcid="@Insert" value="ognl:row.email"/>
</a>
</tr>
<tr jwcid="user_enabledColumnValue@Block">
<span jwcid="@If" condition="ognl:row.enabled == true"><input type="checkbox" disabled="disabled" checked="checked" style="margin-left: 15px"/></span>
<span jwcid="@Else"><input type="checkbox" disabled="disabled" style="margin-left: 15px"/></span>
</tr>
</table>
was (Author: mraible):
This doesn't quite work as expect - maybe it has something to do with TAPESTRY-881. My column headers are rendered as user_username, user_email, user_enabled, etc. when in 4.0.x, they got rendered with i18n keys.
Here's my table:
<table jwcid="table@contrib:Table" class="table contribTable" id="userList"
rowsClass="ognl:beans.rowsClass.next" row="ognl:row"
columns="user.username:username, activeUsers.fullName:fullName, user.email:email, user.enabled:enabled"
source="ognl:users" initialSortColumn="username"
arrowUpAsset="asset:upArrow" arrowDownAsset="asset:downArrow">
<tr jwcid="user_usernameColumnValue@Block">
<a jwcid="@DirectLink" listener="listener:edit" parameters="ognl:row.id">
<span jwcid="@Insert" value="ognl:row.username"/>
</a>
</tr>
<tr jwcid="user_emailColumnValue@Block">
<a jwcid="@Any" href="ognl:+'mailto:'+row.email">
<span jwcid="@Insert" value="ognl:row.email"/>
</a>
</tr>
<tr jwcid="user_enabledColumnValue@Block">
<span jwcid="@If" condition="ognl:row.enabled == true"><input type="checkbox" disabled="disabled" checked="checked" style="margin-left: 15px"/></span>
<span jwcid="@Else"><input type="checkbox" disabled="disabled" style="margin-left: 15px"/></span>
</tr>
</table>
> contrib:Table can't render column blocks when column name has period in it
> --------------------------------------------------------------------------
>
> Key: TAPESTRY-234
> URL: https://issues.apache.org/jira/browse/TAPESTRY-234
> Project: Tapestry
> Issue Type: Improvement
> Components: Contrib
> Affects Versions: 4.0.1
> Reporter: Matt Raible
> Assignee: Jesse Kuhnert
> Fix For: 4.0.1, 4.1.3
>
> Attachments: AbstractTableColumn.patch, contribTable.patch, SimpleTableColumn.patch
>
>
> I'm using the following column attribute in my contrib:Table:
> columns="user.username:username, user.firstName:firstName, user.lastName:lastName, user.email:email"
> If I try to override one of the column with an @Block, an error gets thrown. It'd be nice if periods were allowed, possibly converted to underscores or something for the @Block element. I'll attach a patch to SimpleTableColumn that makes this work.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org