2 Replies Latest reply on Feb 5, 2006 5:54 AM by Louis Coetzee

    Force re-outjection ?

    Louis Coetzee Apprentice


      is it possible to force a re-outjection of my variables ?

      mentions the equals method, but in my case I need to change the order of a collection, with the same entities in the collection (as established in an @Factory method).

      I have a stateful bean with an active conversation.



        • 1. Re: Force re-outjection ?
          Gavin King Master

          I don't understand what you mean. What is your usecase exactly?

          • 2. Re: Force re-outjection ?
            Louis Coetzee Apprentice

            Hi Gavin,

            ignore my posting/question. Seam is working correctly and outjecting the right stuff at the right time. My code was broken a bit.

            Anyway, what I am doing (and wanted to do, but failed to explain properly earlier): use the @Factory("xxx") annotation in a stateful bean. Have xxx event scope only, meaning that my factory will be called every time I access the jsf page containing xxx (no matter the state of my conversation). In the factory method re-order the elements in the collection (e.g. based on chosen language) and have that collection outjected with the desired ordering for viewing. The solution was to ensure that the collection is set to NULL first and a new one allocated, which gets populated with the new ordering. This new collection is then outjected correctly.