"[EMAIL PROTECTED]" wrote : You can, using value="#{'foo'}" but please promise 
me you will not append the "name asc" to a database query!


Hei, tnx

Well, I guess it is used in a hibernate query. It is used to order the list of 
objects by the first column. But this is what the generated pages do anyway, 
only that they do it only when you click on the column headers:


<h:column>
  |     <f:facet name="header">
  |             <s:link styleClass="columnHeader"
  |                                      value="Name #{abcList.order=='name 
asc' ? messages.down : ( abcList.order=='name desc' ? messages.up : '' )}">
  |                     <f:param name="order" value="#{abcList.order=='name 
asc' ? 'name desc' : 'name asc'}"/>
  |             </s:link>
  |     </f:facet>
  |     #{abc.name}
  | </h:column>

We just need a default order when the page is loaded the first time.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055191
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to