Link: Ajax Navigation
See original GitHub issueDescription
One of reasons for dissemination of single-page applications is the performance it brings with navigation between screens without the cost of a full page load, specially JS/CSS. JSF 2.3 advanced a lot when the subject is GET requests with h:link, f:metadata and f:viewAction check my project JSF-PERFECT-CRUD to check how much I use it on my applications.
Would be great primefaces provide a way to navigate between pages without a full HTTP request and this way provide the feeling of single-page applications without the added complexity of a client-side JavaScript framework.
Describe the solution you would like
- First implementation could be on
p:link, when user setajax=trueprimefaces changes the browser’s URL using the History API, updateh:bodywith content of new page and merge hish:head. - Second would be on all components that implements
actionproperty, when a action with?redirect=trueis performed, a AJAX navigation needs to be handled.
I know it is not a simple thing to do and maybe changes a lot original JSF navigation but I was there when @cagataycivici made things like client-side validations.
Additional context Some inspiration can be found on Turbolinks and PJAX.
Example XHTML
<h:link value="List Students" outcome="/views/students/index.xhtml" ajax="true" />
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (9 by maintainers)

Top Related StackOverflow Question
But i’m not going to help doing it that way, agree with Thomas, if you can’t do it using raw JS or JQuery, don’t give it an attempt.
Wonder if I should actually … hmm
+100, MPA’s is the only thing making PF unusable for post mobile-wave applications