rich:dataTable doesn´t work with rich:scrolldata
I have this code
<f:view>
<a4j:keepAlive beanName="datosCtrlBean" ajaxOnly="true"/>
<h:form>
<rich:dataTable width="300" id="carList" rows="10" columnClasses="col"
value="#{datosCtrlBean.datos}" var="category" >
<f:facet name="header">
<rich:columnGroup>
<h:column>
<h:outputText styleClass="headerText" value="Make" />
</h:column>
</rich:columnGroup>
</f:facet>
开发者_开发知识库 <h:column>
<h:outputText value="#{category}" />
</h:column>
<f:facet name="footer">
</f:facet>
</rich:dataTable>
<rich:datascroller align="left" for="carList" id="sc2" />
</h:form>
</f:view>
datascroller working fine but the list of dataTable doesn´t refresh, but if I change by h:dataTable work fine.
what am I doing wrong??
ajaxOnly
attribute is a flag that declares whether the value of the bean should be available during a non-Ajax request. If ajaxOnly="true", a request scope bean will keep the same value during Ajax requests from the given page, but it will be re-created as a regular request scope bean when a non-Ajax request will send from this page.
I would recommend to you to remove ajaxOnly="true"
from a4j:keepAlive
This might also help: http://mkblog.exadel.com/2009/12/richfaces-suggestion-box-component/
精彩评论