[jboss-user] [JBoss Seam] - Re: Question: Can static parameters be used in *.page.xml?

anescu do-not-reply at jboss.com
Mon Jun 18 08:18:15 EDT 2007


"christian.bauer at jboss.com" 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



More information about the jboss-user mailing list