On 09.05.2007, at 15:56, Christofer Dutz wrote:

Hi,

I am currently having some problems with JavaFlow and SuggestionLists.
My application used to generate dynamic suggestion lists in the "_cocoon/forms/suggest" pipeline. Unfortunately the FormsGenerator, SuggestionListGenerator, JXGenerator and Transformer and my custom Generator seem to be unable to get the form instance.

I think this might be a result of the way JavaFlow deals with Continuations (GetContext beeing implemented using Thread.currentThread()) as the SuggestionList pipeline is served by a different Thread.

It's been a while and I would have to dig into the code ....but are you sure the other pipeline is served by a different thread?

A known limitation is when you use a continuation in one pipeline and use the cocoon protocol to a pipeline that also provides creates continuations. That aint work as you (atm) only can have one continuation per thread. (Not that complicated to change though)

A soltuion I thought about was using some sort of Singleton for storing form instance data ... but would really like to avoid this.

Yeah ...that sounds ugly.

cheers
--
Torsten


Reply via email to