You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jason Lane <ja...@root10.net> on 2004/03/26 18:31:52 UTC

continuation-id

Hi list,

how can I access the continuation-id of a woody bind through it's 
classpath? (hope that's the right terminology).

I realise that <wt:continuation-id/> will output <input value="xxx" 
type="hidden" name="continuation-id"/> to the form but I want to do 
something like:

<map:parameter name="continuation-id" 
value="org.apache.cocoon.woody.binding.getId"/>

Many thanks


Jason


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: continuation-id

Posted by Marc Portier <mp...@outerthought.org>.

Jason Lane wrote:

> 
> On 26 Mar 2004, at 22:51, Marc Portier wrote:
> 
>>
>>
>> Jason Lane wrote:
>>
>>> Hi list,
>>> how can I access the continuation-id of a woody bind through it's  
>>> classpath? (hope that's the right terminology).
>>
>>
>> I'm afraid it isn't, in fact your complete message sounds more like a  
>> heavenly-inspired haiku. Well that, or you should explain us which  
>> drugs you are taking (we want some too!) :-)
> 
> 
> LOL...both  :-)
> 
>>
>> (sorry, I couldn't resist, pls: no offense intended)
> 
> 
> None taken
> 
>>
>> please explain what your problem really is, and hopefully we could  
>> help you out
> 
> 
> OK I'm trying to figure a way of using a Woody bind and DBXML together,  
> get woody to bind to the document (with either an XML or Bean bind) and  

I assume you'ld want to take up the XML Bind, no? What other 
object-model then a DOM tree would you provide (and still make sense?)

> then save the result into Xindice-embeded. I know that this would have  
> normally be done with something like this:  
> http://wiki.cocoondev.org/Wiki.jsp?page=XMLFormXindice but my drug  
> fevered, haiku mind possibly got the better of me.
> 
> Marc do you think this is sound reasoning or not? (I suspect not).
> 

well, I don't know the cocoon-sources (i.e. supported pseudo-protocols) 
surounding xindice in detail, but I am assuming they are updatable and 
behave somewhat like the classic file-sources

in any case the sample form-2/xml binding actually should give you a 
head-start on how you do it (and then swap the document-source with the 
one pointing into xindice)

you will also see in that sample that there is very little you need to 
do/know about the continuation id (it's done by the woody-flowscript API)

HTH,
-marc=
-- 
Marc Portier                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at                http://blogs.cocoondev.org/mpo/
mpo@outerthought.org                              mpo@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: continuation-id

Posted by Jason Lane <ja...@root10.net>.
On 26 Mar 2004, at 22:51, Marc Portier wrote:

>
>
> Jason Lane wrote:
>
>> Hi list,
>> how can I access the continuation-id of a woody bind through it's  
>> classpath? (hope that's the right terminology).
>
> I'm afraid it isn't, in fact your complete message sounds more like a  
> heavenly-inspired haiku. Well that, or you should explain us which  
> drugs you are taking (we want some too!) :-)

LOL...both  :-)

>
> (sorry, I couldn't resist, pls: no offense intended)

None taken

>
> please explain what your problem really is, and hopefully we could  
> help you out

OK I'm trying to figure a way of using a Woody bind and DBXML together,  
get woody to bind to the document (with either an XML or Bean bind) and  
then save the result into Xindice-embeded. I know that this would have  
normally be done with something like this:  
http://wiki.cocoondev.org/Wiki.jsp?page=XMLFormXindice but my drug  
fevered, haiku mind possibly got the better of me.

Marc do you think this is sound reasoning or not? (I suspect not).

>
> already some random remarks:
>
>> I realise that <wt:continuation-id/> will output <input value="xxx"  
>> type="hidden" name="continuation-id"/> to the form but I want to do  
>> something like:
>
> the purpose of this is the following:
> sometimes people don't like the continuation-id in the URL  
> (address-bar of the browser) and want to communicate the  
> continuation-id as a (hidden form-input-field) request-parameter
>

OK yes this makes sense.

> the typical snippet of sitemap that handles that:
> <map:match pattern="uri-pointing-to-functionX">
>   <map:select type="method">
>     <!-- GET : start the flow for this screen -->
>     <map:when test="GET">
>       <map:call function="X"/>
>     </map:when>
>     <!-- POST (form submission) : continue the flow -->
>     <map:when test="POST">
>       <map:call continuation="{request-param:continuation-id}"/>
>     </map:when>
>   </map:select>
> </map:match>
>
>
>> <map:parameter name="continuation-id"  
>> value="org.apache.cocoon.woody.binding.getId"/>
>
> just to get some mist out of the way: cforms(woody)-binding has  
> nothing to do with continuation-id's

OK thanks ;)

>
> guessing your goal: to get a hold of the continuation-id inside the  
> sitemap (e.g. to pass it to a xslt stylesheet or so) you can use a  
> input-module for that (there is one in the scratchpad IIRC:  
> http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/blocks/scratchpad/ 
> java/org/apache/cocoon/components/modules/input/)
>
> for how to use modules read up :  
> http://cocoon.apache.org/2.1/userdocs/concepts/modules.html

Many thanks Marc.

>
> HTH,
> -marc=
>
>> Many thanks
>> Jason
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>
> -- 
> Marc Portier                            http://outerthought.org/
> Outerthought - Open Source, Java & XML Competence Support Center
> Read my weblog at                http://blogs.cocoondev.org/mpo/
> mpo@outerthought.org                              mpo@apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
Jason Lane

Developer
Root10 developments


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: continuation-id

Posted by Marc Portier <mp...@outerthought.org>.

Jason Lane wrote:

> Hi list,
> 
> how can I access the continuation-id of a woody bind through it's 
> classpath? (hope that's the right terminology).
> 

I'm afraid it isn't, in fact your complete message sounds more like a 
heavenly-inspired haiku. Well that, or you should explain us which drugs 
you are taking (we want some too!) :-)

(sorry, I couldn't resist, pls: no offense intended)

please explain what your problem really is, and hopefully we could help 
you out

already some random remarks:

> I realise that <wt:continuation-id/> will output <input value="xxx" 
> type="hidden" name="continuation-id"/> to the form but I want to do 
> something like:
> 

the purpose of this is the following:
sometimes people don't like the continuation-id in the URL (address-bar 
of the browser) and want to communicate the continuation-id as a (hidden 
form-input-field) request-parameter

the typical snippet of sitemap that handles that:
<map:match pattern="uri-pointing-to-functionX">
   <map:select type="method">
     <!-- GET : start the flow for this screen -->
     <map:when test="GET">
       <map:call function="X"/>
     </map:when>
     <!-- POST (form submission) : continue the flow -->
     <map:when test="POST">
       <map:call continuation="{request-param:continuation-id}"/>
     </map:when>
   </map:select>
</map:match>


> <map:parameter name="continuation-id" 
> value="org.apache.cocoon.woody.binding.getId"/>
> 

just to get some mist out of the way: cforms(woody)-binding has nothing 
to do with continuation-id's

guessing your goal: to get a hold of the continuation-id inside the 
sitemap (e.g. to pass it to a xslt stylesheet or so) you can use a 
input-module for that (there is one in the scratchpad IIRC: 
http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/blocks/scratchpad/java/org/apache/cocoon/components/modules/input/)

for how to use modules read up : 
http://cocoon.apache.org/2.1/userdocs/concepts/modules.html

HTH,
-marc=

> Many thanks
> 
> 
> Jason
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 

-- 
Marc Portier                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at                http://blogs.cocoondev.org/mpo/
mpo@outerthought.org                              mpo@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org