You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Joerg Heinicke <jo...@gmx.de> on 2004/05/28 02:28:01 UTC

Re: cvs commit: cocoon-2.1/src/blocks/tour/samples/flow/docs number-guess.xml

On 28.05.2004 02:18, tony@apache.org wrote:

> tony        2004/05/27 17:18:11
> 
>   Modified:    src/blocks/tour/samples/flow/docs number-guess.xml
>   Log:
>   continuation.id => cocoon.continuation.id

???

That's the other way around what I did. I committed the change to the 
doc when cleaning up my mails and having found 
http://marc.theaimsgroup.com/?t=107543614600003&r=1&w=4. I also could 
not remember having used cocoon.continuation.id so I though he is 
correct. Did you test the above?

Joerg

RE: cvs commit: cocoon-2.1/src/blocks/tour/samples/flow/docs number-guess.xml

Posted by Antonio Gallardo <ag...@agssa.net>.
Carsten Ziegeler dijo:
>
> Joerg Heinicke wrote:
>> >
>> > Guess cocoon.continuation is the preferred way.
>>
>> The JXTemplateGenerator suggest to use ${continuation.id},
>> nothing about the cocoon prefix. Maybe we should ask
>> Christopher what his plan was. Or we simply decide it here.
>>
> The old way "continuation.id" has been deprecated. The correct way
> should be "cocoon.*" to use the same syntax as in flow script.
> So whereever just "continuation.id" is documented, this has to be
> fixed.

Why? It cannot be a fixed variable? In Rhino we borrow the "continuation"
from scheme language. That is the cause why we use it directly and not
with with a "cocoon" prefix. My fault, I don't saw when we changed our
mind to use "cocoon.continuation". :-(

Best Regards,

Antonio Gallardo

Re: cvs commit: cocoon-2.1/src/blocks/tour/samples/flow/docs number-guess.xml

Posted by Antonio Gallardo <ag...@agssa.net>.
Joerg Heinicke dijo:
>> Guess cocoon.continuation is the preferred way.
>
> The JXTemplateGenerator suggest to use ${continuation.id}, nothing about
> the cocoon prefix. Maybe we should ask Christopher what his plan was. Or
> we simply decide it here.

For long time the use of ${continuation.id} is the standard. I think it is
shorter and clear:

In http://wiki.cocoondev.org/Wiki.jsp?page=JXTemplateGenerator we found:

<snip>
Provides a generic page template with embedded JSTL and XPath expression
substitution to access data sent by Cocoon Flowscripts, eg. web
continuation.

    * Accessing through JSTL(Apache Jexl): ${continuation.id}
    * Accessing through XPath(Apache JXPath): #{$continuation/id}
</snip>

And the original in Javadocs (search for the "continuation" word):
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/generation/JXTemplateGenerator.html

It is clear there is no "cocoon" prefix. Please don't break this.

Best Regards,

Antonio Gallardo

Re: cvs commit: cocoon-2.1/src/blocks/tour/samples/flow/docs number-guess.xml

Posted by Tony Collen <co...@umn.edu>.
Joerg Heinicke wrote:


> 
> Ok. Can anybody revert my change to userdocs/flow/tutor.xml? I don't 
> have access to Cocoon before tuesday.
> 
> Joerg

I got it.

Tony

Re: cvs commit: cocoon-2.1/src/blocks/tour/samples/flow/docs number-guess.xml

Posted by Joerg Heinicke <jo...@gmx.de>.
On 28.05.2004 13:44, Carsten Ziegeler wrote:

>>>Guess cocoon.continuation is the preferred way.
>>
>>The JXTemplateGenerator suggest to use ${continuation.id}, 
>>nothing about the cocoon prefix. Maybe we should ask 
>>Christopher what his plan was. Or we simply decide it here.
>>
> 
> The old way "continuation.id" has been deprecated. The correct way
> should be "cocoon.*" to use the same syntax as in flow script.
> So whereever just "continuation.id" is documented, this has to be
> fixed.

Ok. Can anybody revert my change to userdocs/flow/tutor.xml? I don't 
have access to Cocoon before tuesday.

Joerg

RE: cvs commit: cocoon-2.1/src/blocks/tour/samples/flow/docs number-guess.xml

Posted by Carsten Ziegeler <cz...@s-und-n.de>.
 
Joerg Heinicke wrote:
> > 
> > Guess cocoon.continuation is the preferred way.
> 
> The JXTemplateGenerator suggest to use ${continuation.id}, 
> nothing about the cocoon prefix. Maybe we should ask 
> Christopher what his plan was. Or we simply decide it here.
> 
The old way "continuation.id" has been deprecated. The correct way
should be "cocoon.*" to use the same syntax as in flow script.
So whereever just "continuation.id" is documented, this has to be
fixed.

Carsten


Re: cvs commit: cocoon-2.1/src/blocks/tour/samples/flow/docs number-guess.xml

Posted by Joerg Heinicke <jo...@gmx.de>.
On 28.05.2004 08:04, Tony Collen wrote:

>> Hmm, they both seem to work:
>>
>> <p>cocoon.continuation.id: ${cocoon.continuation.id}</p>
>> <p>continuation.id: ${continuation.id}</p>
>>
>> yields:
>>
>> <p 
>> xmlns:c="http://apache.org/cocoon/templates/jx/1.0">cocoon.continuation.id: 
>> 542e3f295f3162016f200b848d47811573151082</p>
>> <p>continuation.id: 542e3f295f3162016f200b848d47811573151082</p>
>>
>> But that does not explain why the tutorial wasn't working, unless 
>> cocoon.continuation.id was not supported back in January when the 
>> message was sent.
>>
>> So which do we "recommend"?
> 
> 
> n/m:
> 
> http://cocoon.apache.org/2.1/userdocs/flow/jxtemplate.html
> 
> org.apache.cocoon.components.flow.WebContinuation continuation
> 
> The current Web Continuation (deprecated: use cocoon.continuation instead)
> 
> Guess cocoon.continuation is the preferred way.

The JXTemplateGenerator suggest to use ${continuation.id}, nothing about 
the cocoon prefix. Maybe we should ask Christopher what his plan was. Or 
we simply decide it here.

Joerg

Re: cvs commit: cocoon-2.1/src/blocks/tour/samples/flow/docs number-guess.xml

Posted by Tony Collen <co...@umn.edu>.
Tony Collen wrote:


> Hmm, they both seem to work:
> 
> <p>cocoon.continuation.id: ${cocoon.continuation.id}</p>
> <p>continuation.id: ${continuation.id}</p>
> 
> yields:
> 
> <p 
> xmlns:c="http://apache.org/cocoon/templates/jx/1.0">cocoon.continuation.id: 
> 542e3f295f3162016f200b848d47811573151082</p>
> <p>continuation.id: 542e3f295f3162016f200b848d47811573151082</p>
> 
> But that does not explain why the tutorial wasn't working, unless 
> cocoon.continuation.id was not supported back in January when the 
> message was sent.
> 
> So which do we "recommend"?

n/m:

http://cocoon.apache.org/2.1/userdocs/flow/jxtemplate.html

org.apache.cocoon.components.flow.WebContinuation continuation

The current Web Continuation (deprecated: use cocoon.continuation instead)

Guess cocoon.continuation is the preferred way.

Tony

Re: cvs commit: cocoon-2.1/src/blocks/tour/samples/flow/docs number-guess.xml

Posted by Tony Collen <co...@umn.edu>.
Joerg Heinicke wrote:

> On 28.05.2004 02:33, Tony Collen wrote:
> 
>>> That's the other way around what I did. I committed the change to the 
>>> doc when cleaning up my mails and having found 
>>> http://marc.theaimsgroup.com/?t=107543614600003&r=1&w=4. I also could 
>>> not remember having used cocoon.continuation.id so I though he is 
>>> correct. Did you test the above?
>>
>>
>> Ah, crap... I get -1000 for reading comprehension :P
> 
> 
> :-)
> 
>> Reverting....
> 
> 
> Better try it out so that we can go sure.
> 

Hmm, they both seem to work:

<p>cocoon.continuation.id: ${cocoon.continuation.id}</p>
<p>continuation.id: ${continuation.id}</p>

yields:

<p xmlns:c="http://apache.org/cocoon/templates/jx/1.0">cocoon.continuation.id: 
542e3f295f3162016f200b848d47811573151082</p>
<p>continuation.id: 542e3f295f3162016f200b848d47811573151082</p>

But that does not explain why the tutorial wasn't working, unless 
cocoon.continuation.id was not supported back in January when the message was sent.

So which do we "recommend"?

> Joerg

Tony

Re: cvs commit: cocoon-2.1/src/blocks/tour/samples/flow/docs number-guess.xml

Posted by Joerg Heinicke <jo...@gmx.de>.
On 28.05.2004 02:33, Tony Collen wrote:

>> That's the other way around what I did. I committed the change to the 
>> doc when cleaning up my mails and having found 
>> http://marc.theaimsgroup.com/?t=107543614600003&r=1&w=4. I also could 
>> not remember having used cocoon.continuation.id so I though he is 
>> correct. Did you test the above?
> 
> Ah, crap... I get -1000 for reading comprehension :P

:-)

> Reverting....

Better try it out so that we can go sure.

Joerg

Re: cvs commit: cocoon-2.1/src/blocks/tour/samples/flow/docs number-guess.xml

Posted by Tony Collen <co...@umn.edu>.
Joerg Heinicke wrote:

> On 28.05.2004 02:18, tony@apache.org wrote:
> 
>> tony        2004/05/27 17:18:11
>>
>>   Modified:    src/blocks/tour/samples/flow/docs number-guess.xml
>>   Log:
>>   continuation.id => cocoon.continuation.id
> 
> 
> ???
> 
> That's the other way around what I did. I committed the change to the 
> doc when cleaning up my mails and having found 
> http://marc.theaimsgroup.com/?t=107543614600003&r=1&w=4. I also could 
> not remember having used cocoon.continuation.id so I though he is 
> correct. Did you test the above?
> 

Ah, crap... I get -1000 for reading comprehension :P

> Joerg

Reverting....

Tony