Re: Help with Continuations

2008-09-30 Thread Reinhard Pötz
Leszek Gawron wrote:
 Joerg Heinicke wrote:
 On 23.09.2008 13:39, Jeremy Quinn wrote:

 I don't see any way of working around this.

 What a shame, I guess this rules out putting this functionality into
 a system-level sitemap.

 That's actually by intention and used to be different. It was Leszek
 who changed it [1]. One very good reason [2] is the wrong context in a
 different interpreter and so sitemap. Links wouldn't be resolved
 correctly anymore.

 Joerg

 [1] http://svn.apache.org/viewvc?view=revrevision=106089
 [2] http://marc.info/?l=xml-cocoon-devm=110268944032541w=4
 
 I am afraid this cannot be changed. It used to be different but it was
 very error prone. Invoking continuations in different context than they
 were created led to unexpected (usually erroneous) results.
 
 I am always amazed how you guys are able to dig out some info in
 messages from 2004 :).

markmail is just great ;-)

-- 
Reinhard Pötz   Managing Director, {Indoqa} GmbH
 http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member  [EMAIL PROTECTED]



Re: Help with Continuations

2008-09-24 Thread Leszek Gawron

Joerg Heinicke wrote:

On 23.09.2008 13:39, Jeremy Quinn wrote:


I don't see any way of working around this.

What a shame, I guess this rules out putting this functionality into a 
system-level sitemap.


That's actually by intention and used to be different. It was Leszek who 
changed it [1]. One very good reason [2] is the wrong context in a 
different interpreter and so sitemap. Links wouldn't be resolved 
correctly anymore.


Joerg

[1] http://svn.apache.org/viewvc?view=revrevision=106089
[2] http://marc.info/?l=xml-cocoon-devm=110268944032541w=4


I am afraid this cannot be changed. It used to be different but it was 
very error prone. Invoking continuations in different context than they 
were created led to unexpected (usually erroneous) results.


I am always amazed how you guys are able to dig out some info in 
messages from 2004 :).


--
Leszek Gawron http://www.mobilebox.pl/krs.html
CTO at MobileBox Ltd.



Re: Help with Continuations

2008-09-23 Thread Jeremy Quinn

Hi Joerg

Many thanks for your confirmation.

Yes, the SuggestionListGenerator uses the sitemap path and the  
continuation id to lookup the continuation.


I don't see any way of working around this.

What a shame, I guess this rules out putting this functionality into a  
system-level sitemap.


thanks again

regards Jeremy


On 22 Sep 2008, at 18:18, Joerg Heinicke wrote:


On 22.09.2008 17:12, Jeremy Quinn wrote:

However, it seems I am unable to retrieve a continuation made in  
one sitemap, from another sitemap.

Can anyone confirm this?


As far as I remember the continuations are managed per sitemap. You  
might have a look at  
ContinuationsManagerImpl.lookupWebContinuation(..), around line 240,  
where it checks the continuation against the stored interpreter ID.  
That's where you should run through if you access a continuation  
from another sitemap than the one it was created in if I'm not  
mistaken.


Joerg




Re: Help with Continuations

2008-09-23 Thread Joerg Heinicke

On 23.09.2008 13:39, Jeremy Quinn wrote:


I don't see any way of working around this.

What a shame, I guess this rules out putting this functionality into a 
system-level sitemap.


That's actually by intention and used to be different. It was Leszek who 
changed it [1]. One very good reason [2] is the wrong context in a 
different interpreter and so sitemap. Links wouldn't be resolved 
correctly anymore.


Joerg

[1] http://svn.apache.org/viewvc?view=revrevision=106089
[2] http://marc.info/?l=xml-cocoon-devm=110268944032541w=4


Re: Help with Continuations

2008-09-22 Thread Joerg Heinicke

On 22.09.2008 17:12, Jeremy Quinn wrote:

However, it seems I am unable to retrieve a continuation made in one 
sitemap, from another sitemap.


Can anyone confirm this?


As far as I remember the continuations are managed per sitemap. You 
might have a look at ContinuationsManagerImpl.lookupWebContinuation(..), 
around line 240, where it checks the continuation against the stored 
interpreter ID. That's where you should run through if you access a 
continuation from another sitemap than the one it was created in if I'm 
not mistaken.


Joerg