You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by H....@MI.unimaas.nl on 2004/11/20 00:21:00 UTC
RE: [CForms/Flow] updating repeater causes loss of session contex
t - please help
> I do not know how auth-fw works. Still this looks for me like the
> problem occurs when you resume continuations. Shouldn't you wrap your
> <map:call continuation="{1}"/> with some auth-fw action?
Sounds plausible, but I have no clue what the correct syntax should be. How
do I mix the following:
<map:match pattern="**news.html">
<map:call function="isLoggedIn">
<map:parameter name="handler" value="flowAuthenticationHandler"/>
<map:parameter name="protected-internal" value="general/news.form"/>
<map:parameter name="failure-redirect" value="login"/>
</map:call>
</map:match>
And
<map:match pattern="*.continue">
<map:call continuation="{1}"/>
</map:match>
In other words: how do I wrap the 'call function="isLoggedIn"' around the
'call continuation'?
Thanks.
Bye, Helma
Re: [CForms/Flow] updating repeater causes loss of session contex
t - please help
Posted by Leszek Gawron <lg...@mobilebox.pl>.
H.vanderLinden@MI.unimaas.nl wrote:
>>I do not know how auth-fw works. Still this looks for me like the
>>problem occurs when you resume continuations. Shouldn't you wrap your
>><map:call continuation="{1}"/> with some auth-fw action?
>
>
> Sounds plausible, but I have no clue what the correct syntax should be. How
> do I mix the following:
>
> <map:match pattern="**news.html">
> <map:call function="isLoggedIn">
> <map:parameter name="handler" value="flowAuthenticationHandler"/>
> <map:parameter name="protected-internal" value="general/news.form"/>
> <map:parameter name="failure-redirect" value="login"/>
> </map:call>
> </map:match>
>
> And
>
> <map:match pattern="*.continue">
> <map:call continuation="{1}"/>
> </map:match>
>
> In other words: how do I wrap the 'call function="isLoggedIn"' around the
> 'call continuation'?
>
> Thanks.
>
> Bye, Helma
not quite possible for 2 flowscript functions but feasible with a
flowscript function and an action:
<map:match pattern="*.continue">
<map:act type="authenticate">
<map:call continuation="{../1}"/>
<map:act>
<map:redirect-to uri="failure"/>
</map:match>
--
Leszek Gawron lgawron@mobilebox.pl
Project Manager MobileBox sp. z o.o.
+48 (61) 855 06 67 http://www.mobilebox.pl
mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65