這是通過縫根(2.2.0)豐富:列sortBy不正確排序
<h:column>
<f:facet name="header">
<ui:include src="/layout/sort.xhtml">
<ui:param name="entityList" value="#{userList}"/>
<ui:param name="propertyLabel" value="Name"/>
<ui:param name="propertyPath" value="user.name"/>
</ui:include>
</f:facet>
<h:outputText value="#{_user.name}"/>
</h:column>
產生的原始代碼,我們喜歡的排序功能,因此我們包含豐富:列sortBy,但排序是不正確的(如果我們不在f:facet中使用/layout/sort.xhtml,那麼在分頁頁面中,它會丟失排序功能,因爲排序參數不會在頁面導航中發送)。
<rich:column sortBy="#{_user.name}">
<f:facet name="header">Name</f:facet>
<h:outputText value="#{_user.name}"/>
</rich:column>
像以前那樣使用豐富我們如何獲得相同的功能:列sortBy
你把「rich:column」放在哪裏?在'dataTable'中? – Bozho 2010-02-06 17:42:01
您可以發佈一個完整的< dataTable>'在你的問題中,用''和所有? –
2010-04-15 21:30:58