What is the best way to make "Back" links, so that the application stays consistent after navigation.
onclick="history.go(-1)"
. Is this very harmful?- Using a stack in a backing bean that pops you the navigation case of the last view. You can do this by setting the navigation case with
<f:setPropertyActionListener>
. - None of these... other solutions.
Any help would be appreciated! Share your thoughts! Daniel
I'm using:
<redirect />
for each navigation ruleThis ensures that on pressing the "back" button or
history.go(-1)
:P.S. "backlink" has a different meaning
If you want to solve this by programmed navigation links, you can use a
LinkedList
as a stack. This way you can set boundaries for the number of stored navigation cases.Example:
So in 'forward' links:
And a 'back' link would be: