[jboss-user] [JBoss Seam] - Re: EntityQuery Restrictions

griffitm do-not-reply at jboss.com
Thu Oct 25 17:22:42 EDT 2007


Overriding the getOrder method as below then disables the clickable sorting feature of the data tables:

  |         <h:column>
  |             <f:facet name="header">
  |                 <s:link styleClass="columnHeader"
  |                              value="Description #{statusList.order=='description asc' ? messages.down : ( statusList.order=='description desc' ? messages.up : '' )}">
  |                     <f:param name="order" value="#{statusList.order=='description asc' ? 'description desc' : 'description asc'}"/>
  |                 </s:link>
  |             </f:facet>
  |             #{status.description}
  |         </h:column>
  | 
No longer seems to work, because I suspect the sort order is always returned by the Entity as what is returned by getOrder().  Is there any way for both to happily co-exist?

Do I need to override setOrder as well, and only return the hard coded value if null?

Thanks in advance for any help!
MG

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099031#4099031

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099031



More information about the jboss-user mailing list