首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在rich filtering 4上使用rich:datascroller过滤rich:datatable

在rich filtering 4上使用rich:datascroller过滤rich:datatable
EN

Stack Overflow用户
提问于 2011-09-06 22:28:59
回答 1查看 4.8K关注 0票数 1

我使用的是rich updates 4,我有一个rich:datatable,它有一个rich:datascroller和一个带有过滤器的列,它遵循了rich updates 4展示案例中的示例,但这里是这样的,一旦我过滤了表并更新了datascroller (即.如果最初数据滚动条有10页,在过滤器之后有2页),如果我单击下一页或任何边界控件,它会转到过滤表的下一页,但表将重置为其原始状态(没有过滤器表达式)

下面是我的代码:

代码语言:javascript
复制
        <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>
EN

回答 1

Stack Overflow用户

发布于 2012-05-04 20:09:48

可能MyBean不是视图作用域。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7321543

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档