Uploaded image for project: 'MyFaces CODI'
  1. MyFaces CODI
  2. EXTCDI-49

@ViewAccessScoped in combination with h:link and back-buttons

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.9.2
    • JEE-JSF20-Module
    • None

    Description

      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!)

      Attachments

        Activity

          People

            Unassigned Unassigned
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: