For reRender="Id1, Id2", the IDs must be client ID, or can be under a naming container such as <f:subview>, for example,
<f:subview id="FOO">
<h:panelGroup id="Id1">
...
</h:panelGroup>
<h:panelGroup id="Id2">
...
</h:panelGroup>
<a4j:commandButton value="submit" reRender="Id1,Id2" />
</f:subview>
The client IDs for the two panelGroups are FOO:Id1, FOO:Id2.
Can Ajax4JSF find the two panels to update on client?
Thanks!
it should work both ways - "Id1, Id2" and ":FOO:Id1, :FOO:Id2". The second one is faster. Look for "findComponent" on the Ajax4jsf and RichFaces forums. We discuss the algorithm already.