[
https://issues.apache.org/jira/browse/TAPESTRY-234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12543976
]
Claudio Mantovani commented on TAPESTRY-234:
--------------------------------------------
This behaviour has pretty bad side effects.
First of all, as Patrick Klein reported, we cannot use column names with
underscores, since they get "changed" in dots when displayed.
Second, we can't use sorting on columns whose value contains dots, since they
get converted to underscores when passed to the bound table model.
It would better to come up with a different solution, that does not break usage
of dots and underscores in column paths/names.
In any case, column display code should be fixed to preserve original format.
Some ideas to fix the second problem:
- use a more elaborate pattern, less likely to cause conflicts (e.g.: "___",
three underscores) (simple, easy to adapt for users but hacky, although less
that the current broken solution)
- connect the "overriding" blocks to the tablevalues with a different method,
that does not involve a particular component name (would also be more robust,
but harder and requires more refactoring by users)
A "compatibility" mode could be used to allow old code to work as before,
specified by a parameter on the tablevalues component.
This has caused us multiple problems in multiple situations, and should REALLY
be fixed ASAP.
Thanks
> 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.4
>
> Attachments: AbstractTableColumn.patch, contribTable-20070829.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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]