I have the same problem! But I feel that the solution will be the one @BalusC talks about
Now I use breadcrumb only to get the current view path.
<h:form id="breadcrumb"> <p:breadCrumb> <p:menuitem value="#{bundle.Index}" action="/index?faces-redirect=true" immediate="true"/> <p:menuitem value="#{view.viewId.substring(0, view.viewId.length()-6)}" url="#{view.viewId.substring(0, view.viewId.length()-6)}.jsf" ajax="false"/> </p:breadCrumb> </h:form>
I use .jsf as the Faces URL pattern and after viewid = / * .xhtml **, I had to fine-tune it, remove the .xhtml substring and add the .jsf line.
So, we need bean support that does the task of getting viewid (path) and puts it in an ordered list. It is also possible to use javascript:history.back() and history.forward ()!
Hanynowsky
source share