tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Raible (JIRA)" <tapestry-...@jakarta.apache.org>
Subject [jira] Updated: (TAPESTRY-234) contrib:Table can't render column blocks when column name has period in it
Date Fri, 03 Dec 2004 04:06:23 GMT
     [ http://nagoya.apache.org/jira/browse/TAPESTRY-234?page=history ]

Matt Raible updated TAPESTRY-234:
---------------------------------

    Attachment: AbstractTableColumn.patch

The first attachment is invalid and doesn't work.  This attached patch is much better and
works as desired.  This patch solves the following issue.  

If I use "user.username:username" as a column, I'm unable to override its columnValueBlock.
 If I use:

    <tr jwcid="user.usernameColumnValue@Block">
        <a jwcid="@DirectLink" listener="ognl:listeners.edit" parameters="ognl:row.username">
            <span jwcid="@Insert" value="ognl:row.username"/>
        </a>
    </tr>

I get the following error:

Tag <tr> on line 20 contains an invalid jwcid 'user.usernameColumnValue@Block'.

This patch allows to replaces . with _ for the column name and allows you to override the
column value with:

    <tr jwcid="user_usernameColumnValue@Block">
        <a jwcid="@DirectLink" listener="ognl:listeners.edit" parameters="ognl:row.username">
            <span jwcid="@Insert" value="ognl:row.username"/>
        </a>
    </tr>



> contrib:Table can't render column blocks when column name has period in it
> --------------------------------------------------------------------------
>
>          Key: TAPESTRY-234
>          URL: http://nagoya.apache.org/jira/browse/TAPESTRY-234
>      Project: Tapestry
>         Type: Improvement
>   Components: Contrib
>     Versions: 3.0
>     Reporter: Matt Raible
>  Attachments: AbstractTableColumn.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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


Mime
View raw message