-
1. Re: rich:dataTable, rich:column and sortExpression
martin.ahrer Mar 17, 2008 10:36 AM (in response to jobb)You should try using the http://livedemo.exadel.com/richfaces-demo/richfaces/scrollableDataTable.jsf
-
2. Re: rich:dataTable, rich:column and sortExpression
jobb Mar 17, 2008 10:53 AM (in response to jobb)Sorry, it seems to me that there is not the same problem. scrollableDataTable has other tags to handle sorting like sortMode, columns has no sortExpression and DataTableScrollerBean has no sort code what so ever.
When I look at generating html, nothing from AbstractTableRenderer.java is placed in a code e.g. columnHeaderClass = "dr-table-header-sort-up ".... -
3. Re: rich:dataTable, rich:column and sortExpression
martin.ahrer Mar 17, 2008 12:22 PM (in response to jobb)Look at this posting where sorting with scrollableDataTable is discussed!
http://jboss.com/index.html?module=bb&op=viewtopic&t=129776
The sort related attributes are implemented by rich:column -
4. Re: rich:dataTable, rich:column and sortExpression
jobb Mar 18, 2008 2:47 AM (in response to jobb)Hi Martin
Thanks for you tips. I will investigate my code closer, but tell me one ting : should sort works in dataTable/rich:column only by using sortExpression="#{product.name}" or is there the same problem as you fixed for expression using (#{office.enterprise.description}) which is never evaluated as a EL expression. -
5. Re: rich:dataTable, rich:column and sortExpression
martin.ahrer Mar 18, 2008 3:29 AM (in response to jobb)As far as I know it works with simple properties (e.g. managedbean.property) but not nested properties (e.g managedbean.property.property...)
-
6. Re: rich:dataTable, rich:column and sortExpression
jobb Mar 18, 2008 3:43 AM (in response to jobb)Wait a minute, you wrote managedbean.property : should I have a property 'name' and 'productCode' in my productCatalogMBean with getter/setter ? I've used sortExpression="#{product.name}" means var="product" from dataTable (data object for the current row) with property 'name' and 'productCode' ?