For now: just remember the request URL or JSF viewer on the previous page so you can use it in href or value output / commandlink. There are several ways to achieve it, depending on how you actually view the pages and how “jsfish” you want to achieve. You can pass it as a request parameter f:paramto h:outputLink, or you can set it as a bean property to f:setPropertyActionListenerin h:commandLink, or you can create PhaseListenerone that remembers viewIdand use navigation cases, or you can capture a much less reliable - JavaScript function history.go().
source
share