3 Replies Latest reply on Nov 7, 2007 1:12 PM by Jacob Orshalick

    best practice for populating combos

    leandro sabin Newbie

      Hi.

      Which is the best practice for populating a selectOneListBox component?

      I have a list of static values and I want to load then just once.
      I tried using a @Factory annotation in the method which retrieves those values in a Seam component with SESSION scope. But I am using a long-running conversation in my application and when I end this conversation the data seems to be removed.

      If I put the list of values in the CONVERSATION scope the values get corrupted when I change the tab (I have a richfaces tabpanel).

      I hope someone could help me to clarify this.

      Thanks.