【问题标题】:in primefaces how to scan for multiple components在 primefaces 如何扫描多个组件
【发布时间】:2014-05-08 13:01:08
【问题描述】:

在其中一篇博客中,我看到可以在 ajax 调用中扫描组件,我想知道如何使用 p:component 方法扫描多个组件

<p:ajax listener="#{providerSelectBean.onRowSelect}"  
update=":#{p:component('output')}" event="rowSelect"/>

感谢并感谢您的回复。

【问题讨论】:

    标签: primefaces components


    【解决方案1】:

    最好使用 PrimeFaces 选择器

    update="@(.ui-panel)"
    

    这将更新任何将 .ui-panel 作为类的内容,请参阅 http://www.primefaces.org/showcase/ui/selectors.jsf

    How do PrimeFaces Selectors as in update="@(.myClass)" work? 也给了一个很好的例子

    还有:How to find out client ID of component for ajax update/render? Cannot find component with expression "foo" referenced from "bar"

    【讨论】:

    • 谢谢,我试试这个
    猜你喜欢
    • 2016-04-27
    • 1970-01-01
    • 2016-10-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-01
    相关资源
    最近更新 更多