1 Reply Latest reply on Feb 2, 2010 5:34 PM by pmuir

    Producers are invoked before actions

    meetoblivion

      I just noticed something when playing with a simple infinispan app.


      If I have a form/action that are used to display data (from the cache) to the user, I expect the call flow to be something like:


      Validate
      ActionListener(s)
      Action
      Producer(s)


      Instead, the flow seems to be


      Validate
      Producer(s)
      ActionListener(s)
      Action


      Now this causes a problem because my action will populate some data, and the producer returns that data.  The bean is session scoped and the producer is request scoped.


      Is this in fact accurate behavior?