如何reRender许多组件

时间:2011-06-29 15:24:38

标签: jsf java-ee richfaces

我正在使用一个rich:combobox(比如说id =“PARENT”)并想要根据第一个富选中的所选属性更改另外两个富队的下拉列表:combobox(比如说“CHILD1”和“CHILD2”):组合框(父)。

怎么做?

只更换一个rich:combobox(仅限CHILD1),我在“PARENT”中使用了a4j:support(reRender)标签,但是对于两个,我没有。

1 个答案:

答案 0 :(得分:10)

reRender属性将使用逗号分隔多个ID。

<a4j:support event="onchange" reRender="parent,child1,child2" />