You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Wadim Kruse <z-...@web.de> on 2006/08/04 17:00:10 UTC

CForms in Portal + Continuations

Hi @all,

Sorry for repeating the question, but I couldn't find a solution in the docs and on the list.
I've got cforms with styling working in portal (it's probably not the best solution to copy
the cforms head section into the portal-page.xsl, but it works). My problem now are the
actions: How can I get the coplet to be reloaded with continuation on action? I have the 
following matchers in the portal sitemap.xmap:

<map:match pattern="*.continue">
    <map:call continuation="{1}" />
</map:match>

<map:match pattern="continue">
    <map:call
	continuation="{request-param:continuation-id}" />
</map:match>

If an action is triggered, I get an "Invalid Continuation" error. The URL is:
http://.../cocoon/portal/<continuation-id>.continue
If I change the path manually to http://.../cocoon/portal/<path-to-my-coplet-pipeline>/<continuation-id>.continue
everything works fine, but I am outside of the portal...

What is the way to get cforms + continuations working in the portal?

(cocoon 2.1.10-dev)

Thanks in advance!

Regards,
Wadim






______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


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


Re: org.apache.cocoon.Main

Posted by Antonio Gallardo <ag...@agssa.net>.
rachid harradi escribió:
> Hello together,
> which I must adjust around the Main class in cocoon problem-free under eclipse to run
>
>
> Harradi
>   
Hi,

See: http://wiki.apache.org/cocoon/LoadInEclipse

Best Regards,

Antonio Gallardo.

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


org.apache.cocoon.Main

Posted by rachid harradi <ra...@gmx.net>.
Hello together,
which I must adjust around the Main class in cocoon problem-free under eclipse to run


Harradi
-- 


Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nur noch kurze Zeit!
"Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl

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


Re: Re: CForms in Portal + Continuations

Posted by z-...@web.de.
Thanks a lot for your reply, Philippe!
It works now.

Regards,
Wadim

-- Philippe Gassmann wrote : 
Hi, you have to do something like that :
<map:match pattern="my-wonderfull-cform-coplet">
<map:select type="request-method">
  <map:when test="GET">
      <map:call function="my-function-with-showForm">
  </map:when>
  <map:otherwise>
      <map:call continuation="{request-param:continuation-id}"/>
  </map:otherwise>
</map:select>
</map:match>

You can also use the "simple" selector and call the continuation if the
request param "continuation-id" is present in your request.
But you have to take care of avoiding having two cform on the same
portal page (in two coplets). This can lead to calling one continuation
in the wrong coplet.



Wadim Kruse wrote:
> Hi @all,
>
> Sorry for repeating the question, but I couldn't find a solution in the docs and on the list.
> I've got cforms with styling working in portal (it's probably not the best solution to copy
> the cforms head section into the portal-page.xsl, but it works). My problem now are the
> actions: How can I get the coplet to be reloaded with continuation on action? I have the 
> following matchers in the portal sitemap.xmap:
>
> <map:match pattern="*.continue">
>     <map:call continuation="{1}" />
> </map:match>
>
> <map:match pattern="continue">
>     <map:call
> 	continuation="{request-param:continuation-id}" />
> </map:match>
>
> If an action is triggered, I get an "Invalid Continuation" error. The URL is:
> http://.../cocoon/portal/<continuation-id>.continue
> If I change the path manually to http://.../cocoon/portal/<path-to-my-coplet-pipeline>/<continuation-id>.continue
> everything works fine, but I am outside of the portal...
>
> What is the way to get cforms + continuations working in the portal?
>
> (cocoon 2.1.10-dev)
>
> Thanks in advance!
>
> Regards,
> Wadim
>
>
>
>
>
>
> ______________________________________________________________
> Verschicken Sie romantische, coole und witzige Bilder per SMS!
> Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@coco...
> For additional commands, e-mail: users-help@coco...
>
>   


-- 
Philippe GASSMANN
Solutions & Technologies
ANYWARE TECHNOLOGIES
Tel : +33 (0)561 000 655 
Fax : +33 (0)561 005 146
http://www.anyware-tech.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@coco...
For additional commands, e-mail: users-help@coco...


--
This message was sent on behalf of z-cool@web.de at openSubscriber.com
http://www.opensubscriber.com/message/users@cocoon.apache.org/4622564.html

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


Re: CForms in Portal + Continuations

Posted by Philippe Gassmann <ph...@anyware-tech.com>.
Hi, you have to do something like that :
<map:match pattern="my-wonderfull-cform-coplet">
<map:select type="request-method">
  <map:when test="GET">
      <map:call function="my-function-with-showForm">
  </map:when>
  <map:otherwise>
      <map:call continuation="{request-param:continuation-id}"/>
  </map:otherwise>
</map:select>
</map:match>

You can also use the "simple" selector and call the continuation if the
request param "continuation-id" is present in your request.
But you have to take care of avoiding having two cform on the same
portal page (in two coplets). This can lead to calling one continuation
in the wrong coplet.



Wadim Kruse wrote:
> Hi @all,
>
> Sorry for repeating the question, but I couldn't find a solution in the docs and on the list.
> I've got cforms with styling working in portal (it's probably not the best solution to copy
> the cforms head section into the portal-page.xsl, but it works). My problem now are the
> actions: How can I get the coplet to be reloaded with continuation on action? I have the 
> following matchers in the portal sitemap.xmap:
>
> <map:match pattern="*.continue">
>     <map:call continuation="{1}" />
> </map:match>
>
> <map:match pattern="continue">
>     <map:call
> 	continuation="{request-param:continuation-id}" />
> </map:match>
>
> If an action is triggered, I get an "Invalid Continuation" error. The URL is:
> http://.../cocoon/portal/<continuation-id>.continue
> If I change the path manually to http://.../cocoon/portal/<path-to-my-coplet-pipeline>/<continuation-id>.continue
> everything works fine, but I am outside of the portal...
>
> What is the way to get cforms + continuations working in the portal?
>
> (cocoon 2.1.10-dev)
>
> Thanks in advance!
>
> Regards,
> Wadim
>
>
>
>
>
>
> ______________________________________________________________
> Verschicken Sie romantische, coole und witzige Bilder per SMS!
> Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>   


-- 
Philippe GASSMANN
Solutions & Technologies
ANYWARE TECHNOLOGIES
Tel : +33 (0)561 000 655 
Fax : +33 (0)561 005 146
http://www.anyware-tech.com/


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