p:button transition to update a form in another page

UI Components for JSF
Post Reply
vissu19
Posts: 6
Joined: 10 May 2013, 20:56

18 Apr 2016, 06:15

Hi,

I am trying to update a page contents after a "Flip" transition occurs.

Unfortunately, the only button that is allowing the flip transiton is p:button. However, the "update" of the target page via the p:button is not working. I tried the update in multiple ways but nothing seems to work

1. Used update on the p:button element. Update did not work.
2. Used remote command and invoked it up oncomplete but didnt work
3. Used p:ajax to update the second page form on event "click". that didnt work either.

Here is my code (with several options that I tried):

<p:button outcome="pm:secondPage?transition=flip" value="Flip to Second Page" onclick="updateSecondPage()" update=":secondPage:secondPageForm>
<!-- <p:ajax event="click" update=":secondPage:secondPageForm>-->
</p>

<pm:page id="secondPage">
<pm:header title="Second Page"/>
<pm:content>
<h:form id="secondPageForm">
<p:remoteCommand name="updateSecondPage" update="@form" />
<h:outputText value="#{myView.dateTime}" />
</h:form>
</pm:content>
</pm:page>

What is the best way to update form on secondPage while not compromising on the "Flip" transition? I am using Primefaces 5.0 and JSF 2.2.1.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

11 May 2016, 13:13

Can you please try your issue with 5.3 or 5.3.x or 6.0.RC3?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 29 guests