JSF Back Button

How to create a link that moves the user one page (the same as clicking a browser)?

Thank.

+3
source share
1 answer

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().

+6
source

Source: https://habr.com/ru/post/1736319/


All Articles