Thanks Mark for the hint. I will try that. I have tried that. Although it really solves the case when user clicks a button that (besides other things) closes the document and opens the view again it does NOT work in cases when a user simply clicks on back button provided by the browser.
I have tried to use onunload page event to execute viewStateBean.restoreState = true. It seems that the code gets executed (at least no error is shown on Domino console) the view state is not restored.