OK, from the start I achieved it by using pretty:link.
But using pretty:link I can’t execute action method before redirecting. <f:ajax> does not work with pretty:link!
I must execute action method before redirecting because of @ViewScoped bean.
The real problem is in @ViewScoped bean. It is not destroyed after I redirect to new view. Therefore user can click back button of browser and see my page not working well, because @ViewScoped bean was not instantiated again when user clicked back button.
Please tell me what to do?
Do you play Magic?
Get TopDecked MTG, the #1 Magic App, built by players, for players. Free to use, forever.