You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jochen Kemnade (JIRA)" <ji...@apache.org> on 2014/05/13 15:23:22 UTC

[jira] [Closed] (TAP5-754) Introduce easier way to disable column sorting in Grid

     [ 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)