Render multiple components with f:ajax

后端 未结 2 803
梦毁少年i
梦毁少年i 2020-12-03 10:16

The wrong codes are:



    

        
相关标签:
2条回答
  • 2020-12-03 10:50

    For a4j jsf use ',': <a4j:support event="onchange" reRender="parent,child1,child2" />

    0 讨论(0)
  • 2020-12-03 11:03

    You can render multiple components with single f:ajax. Just make sure all individual components you want to update have an id. In your sample it would be something like:

    <f:ajax execute="search_form" render="linear1 linear2"/>
    

    Where the IDs need to be separated by just whitespace like linear1 linear2 and not commaseparated like linear1, linear2 (that works only in p:ajax).

    See also:

    • Understanding PrimeFaces process/update and JSF f:ajax execute/render attributes
    • How to find out client ID of component for ajax update/render? Cannot find component with expression "foo" referenced from "bar"
    0 讨论(0)
提交回复
热议问题