2
我是richfaces
的新手。richfaces數據表錯誤
我有豐富的一個問題:數據表過濾,我的網頁的源代碼是喜歡的網站例如:
<h:form id="form">
<rich:dataTable keepSaved="true" id="richTable" var="record" value="#{citiesBean}" rows="20">
<rich:column >
<f:facet name="header">
<h:commandLink action="#{bean.toggleSort}">
#{bean.sortOrders['cityTitle']}
<a4j:ajax render="richTable" />
<f:setPropertyActionListener target="#{bean.sortProperty}" value="#{'cityTitle'}" />
</h:commandLink>
<br />
<h:inputText value="#{citiesBean.filterValues['cityTitle']}">
<a4j:ajax render="[email protected] scroller" event="keyup" />
</h:inputText>
</f:facet>
<h:outputText value="#{record['cityTitle']}" />
</rich:column>
<rich:column >
<f:facet name="header">
<h:commandLink action="#{bean.toggleSort}">
#{bean.sortOrders['cityCode']}
<a4j:ajax render="richTable" />
<f:setPropertyActionListener target="#{bean.sortProperty}" value="#{'cityCode'}" />
</h:commandLink>
<br />
<h:inputText value="#{citiesBean.filterValues['cityCode']}">
<a4j:ajax render="[email protected] scroller" event="keyup" />
</h:inputText>
</f:facet>
<h:outputText value="#{record['cityCode']}" />
</rich:column>
<f:facet name="footer">
<rich:dataScroller id="scroller" />
</f:facet>
</rich:dataTable>
</h:form>
似乎一切都OK,但也存在一些問題。
1- datascroller
在渲染屬性設置爲「richTable」時無法正常工作,但它適用於演示版!
2,當我鍵入濾波器輸入的東西,桌上沒有更新!我檢查了請求和響應的螢火,
響應不具有有效的ID,我的意思是它看起來像這個:
<update id="form:richTable:tb"><tbody id="form:richTable:0:tb" ....
我的代碼有什麼問題?
我使用的,RichFaces的4,Glassfish的3.1,火狐提前3.6
感謝。
即使我陷入了d相同的問題。你可以分享你的filterBeginBean的filterValues方法嗎? – Jayesh