myFaces: Tabelle sortieren: Was mache ich falsch?

H

hjmeu

Hallo,
wie kann man in myfaces eine Tabelle sortieren?

- sortColumn ist ein String (nicht initalisiert)
- allAspectsForCurrentProject ist eine java.util.List
Klick auf den header wird ignoriert. Was mache ich falsch?

Danke für jede Hilfe,
Gruß
Georg

<h:form>
<t:dataTable sortColumn="#{businessCaseAspectBean.sortColumn}"
value="#{businessCaseAspectBean.allAspectsForCurrentProject}"
var="aspect">
<t:column>
<f:facet name="header">
<t:commandSortHeader value="header" columnName="id"
arrow="false"/>
</f:facet>
<h:eek:utputText value="#{aspect.id}" />
</t:column>
</t:dataTable>
</h:form>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top