Is an AJAX navigation possible using "action" attributes?

UI Components for JSF
Post Reply
cj91
Posts: 96
Joined: 04 Feb 2010, 00:07

31 Aug 2011, 18:03

is it possible to do an ajax ppr using JSF actions/outcomes?

Consider this code:

Code: Select all

<p:menuitem
	id="domainsMenuItem"
	value="Domain Object Definitions"
	action="domains" />

with this navigation rule:

Code: Select all

	<navigation-rule>
		<navigation-case>
			<from-outcome>domains</from-outcome>
			<to-view-id>/domains.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
With the above code, the server sends over a PPR via AJAX, but the browser does not render it.

Thanks,
-Jon

cj91
Posts: 96
Joined: 04 Feb 2010, 00:07

01 Sep 2011, 16:34

as a workaround, someone pointed out to me on stackoverflow that:

Code: Select all

   <p:menuitem
   id="domainsMenuItem"
   value="Domain Object Definitions"
   action="domains"
   ajax="false" />
works... but this isn't a ppr

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests