You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by pguillard <pg...@soociety.com> on 2004/10/02 21:48:13 UTC
Re: [CForms] back button
Hi Claudius,
I didn't find much doc on this and was suddenly lucky : <form
method="post" action="continue.#{$cocoon/continuation/parent/id}"> just
get me back to the previous continuation.
But previous continuation is available only after a cforms function
like "form.showFrom()", i don't get it with "cocoon.sendPageAndWait()"
or "cocoon.createWebContinuation()".
You seem to use bookmark for some reason, then forget this mail but let
me know if this is better!
Phil
Claudius Spellmann wrote:
> Hi,
>
> I've tried to use a back button like in the one in the cforms samples
> but it doesn't seem to work for me.
>
> Here is some code from the webapp (just a v.simple testpage):
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <page xmlns:ft="http://apache.org/cocoon/forms/1.0#template"
> xmlns:fi="http://apache.org/cocoon/forms/1.0#instance"
> xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
>
>
> <jx:import
> uri="resource://org/apache/cocoon/forms/generation/template.jx"/>
> <ft:form-template action="test_process" method="POST">
> <ft:continuation-id/>
> <table>
> <tr>
> <td><h1><ft:widget id="test" /></h1></td>
> </tr>
> <tr>
> <td><input type="submit" name="prev" value="Back"
> onClick="document.forms[0].action='#{$cocoon/continuation/previousBookmark/id}.continue';document.forms[0].submit()"/></td>
>
> </tr>
> </table>
> </ft:form-template>
> </page>
>
> I've also used setBookmark in my flowscript but I always get uris that
> look like this:
> cforms/511c48063f4e0c4235017b774c4a595c445e5374.continue#{$cocoon/continuation/previousBookmark/id}.continue
>
>
> does anybody know what I'm doing wrong ?
>
> thanks
> Claudius
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org