Em Sat, 09 Jan 2010 15:09:30 -0200, Everton Agner <everton_ag...@yahoo.com.br> escreveu:

Hi,

Hi!

How can I do that? I haven't found anything about that. I only know that if I add one column to the Grid in the "add" attribute (or directly at it's BeanModel), it will not be part of the Sorting.

@Inject BeanModelSource to create a BeanModel yourserf. Then:

final List<String> propertyNames = model.getPropertyNames();
for (String propertyName : propertyNames) {
        model.get(propertyName).sortable(false);
}

Then pass this BeanModel instance to the model parameter of the Grid component. ;)

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, 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

Reply via email to