I added the following small listsample extension to our JSF-2 sample to demonstrate the problem
1.) a sampleList.xhtml which shows 3 entries in a h:dataTable using a SampleList.java bean
2.) a sampleListEntry.xhtml which shows the id given as f:viewParam to the SampleListEntry bean along with a free String value
Both beans log a INFO message in a @PostConstruct method if they get initialised.
To reproduce the bug:
- Select the entry "1" and enter "ping" into the "value" field
- Click the "back" button
- Now select the entry "2". You will still see the 'old' value "ping" in the "value" field and if you look at the log, then it will miss the INFO message for creating the ViewAccessScoped bean.
Imo a new instance of the SampleListEntry bean should get created each time I freshly re-enter the sampleListEntry.xhtml page again (since it doesn't get touched on the sampleList.xhtml list page!)