2 Replies Latest reply on Jul 31, 2007 4:10 AM by Sebastian Stenerdal

    Changing SESSION-scoped instance in entityhome

    Sebastian Stenerdal Newbie


      I've got a declaratively created entity-home component "fooDao".
      And also a factory for instances of its entity class:

      <factory name="foo" scope="SESSION" value="#{fooDao.instance}/>

      The user selects an instance from a list (which sends the id as a parameter to a view page, as specified in my components.xml) and everything works great.

      The problem arises when a user comes back to the list a second time in the same session. At that point, it doesn't matter which link the user presses, the 'foo' variable remains the instance that was loaded the first time around, rather than being set to the instance with the new selected id.

      Is there an easy solution for this?