Results 1 to 2 of 2

Thread: Setup of Refence Data in View state reloads everytime?

  1. #1
    Join Date
    Dec 2004
    Location
    CA
    Posts
    208

    Default Setup of Refence Data in View state reloads everytime?

    Greetings!

    I know how to sertup reference data within a view state (or action state), however I would like to setup the reference data only once, during the start of the lfow and have it remain through out the user session. Currently, I have a view state that setup my reference data, however, this view is also my main view and I frequently return back to it from various action states. This causes my reference data to be initialize everytime (database hit). Is there a way to prevent this? I know I can always do a test within my functiont to see if the reference data is already in flow or http session scope, and if so don't call my service method, but I wonder if anyone has a better solution. Does anyone? Perhaps FlowExecutionListener?

    Curtney
    Curtney Jacobs

  2. #2
    Join Date
    Sep 2004
    Location
    Leuven, Belgium
    Posts
    1,853

    Default

    Just use a seperate action state that loads the reference data into flow scope and make sure your flow only passes through this action state once, e.g. when starting the flow. It could for instance be the start state of the flow.

    Erwin

Similar Threads

  1. Replies: 9
    Last Post: Nov 1st, 2005, 10:36 PM
  2. Replies: 8
    Last Post: Oct 14th, 2005, 01:44 PM
  3. Exit action from view state
    By pglezen in forum Web Flow
    Replies: 5
    Last Post: Oct 7th, 2005, 02:23 PM
  4. Replies: 3
    Last Post: May 4th, 2005, 08:06 AM
  5. Content Provider vs View Model
    By Martin Kersten in forum Swing
    Replies: 21
    Last Post: Mar 10th, 2005, 02:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •