在richfaces 4上过滤富:datascroller的rich:datatable

时间:2011-09-06 14:28:59

标签: jsf-2 richfaces

我正在使用richfaces 4,我有一个丰富的:带有rich:datascroller的数据表和一个带有过滤器的列,后面是richfaces 4展示的示例,但是这里的东西,一旦我过滤表和datascroller更新(即,如果最初数据循环播放器有10页,过滤器有2页后)如果我点击下一页或任何边界控件,它会想要转到过滤表的下一页但是表重置为它的原始状态(没有过滤表达式)

这是我的代码:

        <rich:dataTable id="mytbl" value="#{MyBean.mylist}" rows="10" 
                        var="emp" 
                        reRender="ds"
                        iterationStatusVar="it">            
            <f:facet name="noData">
                no data found
            </f:facet>
            <rich:column filterValue="#{MyBean.id_filter}"                           
                         filterExpression="#{fn:containsIgnoreCase(emp.id,MyBean.id_filter)}">
                <f:facet name="header">
                    <h:panelGroup>
                        <h:outputText value="id"/>                              
                        <h:inputText value="#{MyBean.id_filter}">
                            <a4j:ajax event="change" render="mytbl" execute="@this"
                                      onbegin="#{rich:component('wait_popup')}.show()"
                                      oncomplete="#{rich:component('wait_popup')}.hide()"/>
                        </h:inputText>
                    </h:panelGroup>
                </f:facet>
                <h:outputText value="#{emp.id}"/>
            </rich:column>

            <rich:column>
                <f:facet name="header">
                    <h:outputText value="value" />
                </f:facet>
                <h:outputText value="#{emp.value}">
                    <f:convertNumber pattern="$#,###.00"/>
                </h:outputText>
            </rich:column>

            <f:facet name="footer">
                <rich:dataScroller maxPages="10" id="ds" render="@this" />
            </f:facet>

        </rich:dataTable>

1 个答案:

答案 0 :(得分:0)

可能MyBean不是视图范围。

相关问题