I have the following problem:
If the action of a CommandLink in the backing bean is executing and the user clicked the reload button or press F5 before the backing bean is completed, the result url of the backing bean is ignored and the current page is refreshed.
In the following very simple example the example.jsf is reloaded, but the nextPage.jsf is not called.
example.jsf
...
<h:commandLink id="actionNext" action="#{bean.action}" />
...
bean.java
...
fuction String action() {
...
return "nextPage"
}
Is there a common solution for that problem?
Or has anybody an idea to prevent the reload useing JavaScript?
Thanks for help.