tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Raible (JIRA)" <...@tapestry.apache.org>
Subject [jira] Commented: (TAPESTRY-234) contrib:Table can't render column blocks when column name has period in it
Date Wed, 22 Aug 2007 23:22:30 GMT

    [ https://issues.apache.org/jira/browse/TAPESTRY-234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12521963
] 

Matt Raible commented on TAPESTRY-234:
--------------------------------------

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


Mime
View raw message