tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Kemnade (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (TAP5-754) Introduce easier way to disable column sorting in Grid
Date Tue, 13 May 2014 13:23:22 GMT

     [ https://issues.apache.org/jira/browse/TAP5-754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jochen Kemnade closed TAP5-754.
-------------------------------

    Resolution: Not a Problem

Another year has passed since the last comment. Therefore, we assume this issue has either
been resolved in the meantime or it is no longer relevant to you.
If recent versions of Tapestry (i.e. 5.4 betas and 5.3.7) are still affected, please reopen
the issue and adjust the "Affected Version/s" property.

> Introduce easier way to disable column sorting in Grid
> ------------------------------------------------------
>
>                 Key: TAP5-754
>                 URL: https://issues.apache.org/jira/browse/TAP5-754
>             Project: Tapestry 5
>          Issue Type: Improvement
>    Affects Versions: 5.1.0.5
>            Reporter: Vjeran Marcinko
>              Labels: bulk-close-candidate
>
> I have seldom need for Grid sorting so I almost always turn it off. Currently this is
a bit awkward procedure. I also rarely configure Grid with BeanModel created in my  page class,
because template way of configuring Grid is sufficient for me.
> I have to introduce 3 new objects just for this purpose in this class, and also do some
coding in setupRender():
>     @Property
>     private BeanModel model;
>     @Inject
>     private BeanModelSource beanModelSource;
>     @Inject
>     private ComponentResources componentResources;
>     void setupRender() {
>         ....
>         model = beanModelSource.createDisplayModel(Employee.class, componentResources.getMessages());
>         List<String> propertyNames = model.getPropertyNames();
>         for (String propertyName : propertyNames) {
>             model.get(propertyName).sortable(false);
>         }
>     }
> Tapestry 4 had simple way of using character "!" in template that achieved the same thing
so I feel kinda nostalgic for it...



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message