[jboss-user] [JBoss Seam] - Re: Keep Trinidad table sort order
brachie
do-not-reply at jboss.com
Mon Jan 14 11:09:21 EST 2008
Hi Pete,
thanks for the answer. I do not fully unterstand how to do what you suggested.
What I am doing is:
Conversational SFSB
| @DataModel
| private List<Mitarbeiter> mitarbeiters;
| ...
|
| @Factory(value = "mitarbeiters")
| public void getMitarbeiterList() {
| Criteria c = ((HibernateSessionProxy) entityManager.getDelegate())
| .createCriteria(Mitarbeiter.class);
| c.addOrder(Order.desc("nachname"));
| mitarbeiters = c.list();
| }
|
and in my template:
| <tr:table width="290px" value="#{mitarbeiters}" var="mitarbeiter" rows="5" styleClass="trTableDiv">
| <tr:column sortable="true" sortProperty="login">
| <f:facet name="header">Login</f:facet>
| <s:link value="#{mitarbeiter.login}" propagation="new"
| action="#{mitarbeiterMgr.selectMitarbeiter}">
| <f:param name="mitarbeiterId" value="#{mitarbeiter.id}" />
| </s:link>
| </tr:column>
| ...
| </tr:table>
|
After clicking the link the same page loads again with the details of mitarbeiter, but the sort order of the table is gone.
Ho do I access the EntityQuery or place the Criteria in another scope?
Alexander
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119702#4119702
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119702
More information about the jboss-user
mailing list