Navigating to specific pm:page on another JSF page

UI Components for JSF
Post Reply
kwrobel
Posts: 12
Joined: 17 Jan 2013, 23:02
Location: Chicagoland, Illinois, U.S.A.
Contact:

01 May 2015, 15:51

Question about multi-page mobile pages: Say I'm on jsfpage1.xhtml on pm:page id="pmpage2". And I would like to navigate to jsfpage2.xhtml and pm:page id="pmpage4". Is it possible? And if so, how do I formulate the outcome?

PrimeFaces 5.2 / JSF 2.2 Mojarra / GlassFish 4.1 / NetBeans 8.0.2 Patch 1
PrimeFaces 6.0 / JSF 2.2 Mojarra / GlassFish 4.1.1 / NetBeans 8.2

nbchesed
Posts: 1
Joined: 28 May 2013, 22:51

11 Jun 2015, 21:50

Code: Select all

  
          <script type="text/javascript">
                $(document).ready(function () {
                    var pageId = '#{theBean.activePage}';
                    PrimeFaces.Mobile.navigate(pageId, {reverse: false});
                });
            </script>

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 30 guests