[
https://issues.apache.org/jira/browse/TAP5-1242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jochen Kemnade updated TAP5-1242:
---------------------------------
Labels: bulk-close-candidate (was: )
This issue has been last updated about 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 (5.4-beta-6, which is available from Maven Central), please update it
as soon as possible. In the case of a feature request, please discuss it with
the Tapestry developer community on the [email protected] mailing list
first.
> There is no way to change the default sort order of a Grid due to methods
> being private
> ---------------------------------------------------------------------------------------
>
> Key: TAP5-1242
> URL: https://issues.apache.org/jira/browse/TAP5-1242
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Darren Williams
> Labels: bulk-close-candidate
>
> There is currently no way to supply the default sort order for the grid when
> pragrammatically populating the grid as shown below. If the sortAscending
> method was made public we could set it on render.
> @Inject
> private BeanModelSource beanModelSource;
> private BeanModel beanModel;
> @Inject
> private Messages messages;
>
> public void setupRender() {
> logger.warn("Setup");
>
> beanModel=beanModelSource.createDisplayModel(License.class,
> messages);
> beanModel.include("entered","endDate");
> beanModel.add("purchase.orgUnit.name").label("Organization");
> beanModel.add("purchase.product.name").label("Product");
> beanModel.add("purchase.licenseType.name").label("License");
>
> //sorting
> if (_grid.getSortModel().getSortConstraints().isEmpty() ) {
> _grid.getSortModel().updateSort("entered");
> //this is still a private method.....
> //_grid.setSortAscending(false);
> }
> }
>
--
This message was sent by Atlassian JIRA
(v6.2#6252)