Re: [Rife-users] How to check if the current element is part of a continuation

2007-05-19 Thread Geert Bevin
Cool, that should work too :-) On 20 May 2007, at 00:35, Eddy Young wrote: On 19 May 2007, at 20:57, Geert Bevin wrote: Hmm, makes sense. One thing that could work is to obtain the active continuation context : ContinuationContext.getActiveContext() Then you can call getContinuable() (w

Re: [Rife-users] How to check if the current element is part of a continuation

2007-05-19 Thread Eddy Young
On 19 May 2007, at 20:57, Geert Bevin wrote: Hmm, makes sense. One thing that could work is to obtain the active continuation context : ContinuationContext.getActiveContext() Then you can call getContinuable() (which is the element, actually) and see if it corresponds to the current one.

Re: [Rife-users] How to check if the current element is part of a continuation

2007-05-19 Thread Geert Bevin
Hmm, makes sense. One thing that could work is to obtain the active continuation context : ContinuationContext.getActiveContext() Then you can call getContinuable() (which is the element, actually) and see if it corresponds to the current one. On 19 May 2007, at 15:51, Eddy Young wrote:

Re: [Rife-users] How to check if the current element is part of a continuation

2007-05-18 Thread Geert Bevin
I'm not sure that the continuation id will be a good indication, as every request is technically part of a continuation. So, it will always appear as though the "login" element is executing as a continuation step. Continuations are only active for elements that use continuations- related c

Re: [Rife-users] How to check if the current element is part of a continuation

2007-05-18 Thread Eddy Young
Quoting Geert Bevin <[EMAIL PROTECTED]>: Hi Eddy, this should help: http://rifers.org/docs/api/com/uwyn/rife/engine/ElementSupport.html#getContinuationId() Take care, Geert Thanks for the quick reply, Geert. I'm not sure that the continuation id will be a good indication, as every reque

Re: [Rife-users] How to check if the current element is part of a continuation

2007-05-18 Thread Geert Bevin
Hi Eddy, this should help: http://rifers.org/docs/api/com/uwyn/rife/engine/ ElementSupport.html#getContinuationId() Take care, Geert On 18 May 2007, at 16:19, Eddy Young wrote: Hello, Does anyone know how to check if the current element is being processed as part of a continuation? I

[Rife-users] How to check if the current element is part of a continuation

2007-05-18 Thread Eddy Young
Hello, Does anyone know how to check if the current element is being processed as part of a continuation? I have a "login" element that either calls "answer()" or display a content block, depending on whether it was called with "call()" or accessed directly. In order to do that, it needs