[
https://issues.apache.org/jira/browse/TAP5-2596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16380779#comment-16380779
]
Chris Poulsen commented on TAP5-2596:
-------------------------------------
If you have special needs then roll your own components and possibly use them
to override the built-in counterparts, we have heavily customized grid, tree
and a bastard tree table (combination) at work, that fits our needs, but I
seriously doubt that their extensions will fit everyone else. We do not
override the built in components, but maintain a somewhat close API
compatibility, so we can swap in one of the tapestry versions without too much
hassle.
I think many of the parts of tapestry are designed to be sufficient for basic
use and made possible to override for more specialized stuff - IMO a nice and
flexible way.
When you start thinking about how such a grid component should be designed to
meet the requirements of everyone, you have started down the rabbit hole.
> Grid header should also allow HTML
> ----------------------------------
>
> Key: TAP5-2596
> URL: https://issues.apache.org/jira/browse/TAP5-2596
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.4.3
> Reporter: Svein
> Priority: Major
> Attachments: image-2018-02-28-10-07-20-662.png
>
>
> I have used <{color:#660e7a}p{color}{color:#000080}:xxxHeader{color}>, but
> this needs an ugly hack to keep the sorting. I would like to set the header
> value with <PropertyModel> destinations.labelRaw({color:#008000}"<span
> class='glyphicon glyphicon-thumbs-up'></span>Destinations"{color});
>
> GridColumns.tml may look like:
> <{color:#000080}thead
> {color}{color:#0000ff}xmlns:{color}{color:#660e7a}t{color}{color:#008000}="http://tapestry.apache.org/schema/tapestry_5_3.xsd"
>
> {color}{color:#660e7a}xml{color}{color:#0000ff}:space{color}{color:#008000}="default"{color}>
> <{color:#000080}tr
> {color}{color:#0000ff}data-inplace-grid-links{color}{color:#008000}="{color}{color:#000080}${{color}inplaceGridLinks\{color:#000080}}">
> <{color:#000080}th
> {color}{color:#660e7a}t{color}{color:#0000ff}:id{color}{color:#008000}="loop"
> {color}{color:#660e7a}t{color}{color:#0000ff}:type{color}{color:#008000}="Loop"
> {color}{color:#0000ff}source{color}{color:#008000}="columnNames"
> {color}{color:#0000ff}value{color}{color:#008000}="columnName"
> {color}{color:#0000ff}formstate{color}{color:#008000}="none"{color}
> {color:#0000ff}index{color}{color:#008000}="index"
> {color}{color:#660e7a}t{color}{color:#0000ff}:mixins{color}{color:#008000}="rendernotification"{color}>
> <{color:#660e7a}t{color}{color:#000080}:delegate
> {color}{color:#0000ff}to{color}{color:#008000}="blockForColumn"{color}/>
> <{color:#660e7a}t{color}{color:#000080}:block
> {color}{color:#0000ff}id{color}{color:#008000}="standardHeader"{color}>
> <{color:#660e7a}t{color}{color:#000080}:unless
> {color}{color:#0000ff}test{color}{color:#008000}="columnModel.labelRaw"{color}>
> <{color:#000080}a
> {color}{color:#660e7a}t{color}{color:#0000ff}:id{color}{color:#008000}="sort"
> {color}{color:#0000ff}rel{color}{color:#008000}="nofollow"{color}>{color:#000080}${{color}columnModel.label\{color:#000080}}</a>
> </{color:#660e7a}t{color}{color:#000080}:unless{color}>
> <{color:#660e7a}t{color}{color:#000080}:if
> {color}{color:#0000ff}test{color}{color:#008000}="columnModel.labelRaw"{color}>
> <{color:#000080}a
> {color}{color:#660e7a}t{color}{color:#0000ff}:id{color}{color:#008000}="sort"
> {color}{color:#0000ff}rel{color}{color:#008000}="nofollow"{color}>
> <{color:#660e7a}t{color}{color:#000080}:outputraw
> {color}{color:#0000ff}value{color}{color:#008000}="columnModel.labelRaw"{color}/>
> </{color:#000080}a{color}>
> </{color:#660e7a}t{color}{color:#000080}:if{color}>
> </{color:#660e7a}t{color}{color:#000080}:block{color}>
> </{color:#000080}th{color}>
> </{color:#000080}tr{color}>
> </{color:#000080}thead{color}>
> !image-2018-02-28-10-07-20-662.png!
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)