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

Ulrich Stärk updated TAP5-754:
------------------------------

    Labels: bulk-close-candidate  (was: )

This issue has been last updated more than 1.5 years ago, has no assignee, 
affects an old version of Tapestry that is not actively developed anymore, and 
is therefore prone to be bulk-closed in the near future.

If the issue still persists with the most recent development preview of 
Tapestry, please update it as soon as possible. In the case of a feature 
request, please discuss it with the Tapestry developer community on the 
d...@tapestry.apache.org mailing list first.
                
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to