Must a <t:dataTable> be enclosed in a <f:form> for sorting to work?
This is my experience with Tomahawk 1.1.3, but it I does no appear to be
document!
Below is an example of a data table with 2 sortable columns.
<h:form>
<t:dataTable value="#{list.entries}" var="row" >
<t:column sortable="true" sortPropertyName="col1">
<f:facet name="header">
<h:outputLabel value="Col 1" />
</f:facet>
<h:outputText value="#{row.col1}" />
</t:column>
<t:column sortable="true" sortPropertyName="col2">
<f:facet name="header">
<h:outputLabel value="Col 2" />
</f:facet>
<h:outputText value="#{row.col2}" />
</t:column>
</t:dataTable>
</h:form>
BTW: This is a great feature that was added in 1.1.3! Thank you to the
developers
Paul Spencer