Reputation: 3530
I know there is a attribute called "update", I can use it like this, update="another component's id"
, but this doesn't work when they are in different <h:form>
tags.
For example, the code like this,
<ui:composition>
<ui:define name="">
<div>
<h:form>
<p:panel header="">
<h:panelGrid id="display">
</h:panelGrid>
</p:panel>
</h:form>
<h:form>
<p:dialog id="dialog">
<p:dataTable onRowSelectUpdate="aa.bb.display"></p:dataTable>
</p:dialog>
</h:form>
</div>
</ui:define>
</ui:composition>
I mean, how can I write in the site of "aa.bb.display", it will re-render the panelGrid of "display" ?
Upvotes: 2
Views: 8406
Reputation: 4101
You should give an id to the <h:form>
. It is important, since you HAVE TO reference like formId:display
My question on this: Absolute reRendering using RichFaces, check my answer. I tested this also in PrimeFaces.
Upvotes: 4