On Thu, 12 Aug 2010 17:46:55 -0300, Darren Williams <dar...@livetime.com>
wrote:
When upgrading to Tapestry 5.2 the inPlace Ajax grid no longer works. It
appears to be related to the sorting and the fact that the _grid sort
model gets reset to null when using the navigation. It works fine if you
don't use the AJAX inPlace call.
Hi!
Try this:
public BeanModel getBeanModel() {
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() ) {
logger.warn("sort constraints");
_grid.getSortModel().updateSort("entered");
//this is still not exposed in tapestry 5.2 so you
can't change order
//_grid.setSortAscending(false);
}
}
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org