Update elements outside of the current form?

UI Components for JSF
Post Reply
craig
Posts: 21
Joined: 04 Oct 2010, 16:09

21 Apr 2011, 14:48

Hi is it possible to use p:ajax to update elements outside of the form that fires the event?

I have seen some examples via google that say if you prefix the id with the separator ( default ':' ) then it would be updated, but I cannot get this to work :(

Any ideas?

Thanks in advance

Craig

healeyb
Posts: 365
Joined: 07 Apr 2010, 16:05

22 Apr 2011, 02:26

Why are you using more than one form? it nearly always ends in tears.
It is not as simple as this example but this should be ok for the time being:

Code: Select all

<h:form id="form1">
  <h:outputText id="out1" .../>
</h:form>

<f:ajax render="form1:out1/>
Post your code.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 28 guests