Page 1 of 1

Is an AJAX navigation possible using "action" attributes?

Posted: 31 Aug 2011, 18:03
by cj91
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

Re: Is an AJAX navigation possible using "action" attribute

Posted: 01 Sep 2011, 16:34
by cj91
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