You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Leszek Gawron <lg...@mobilebox.pl> on 2005/06/10 15:43:57 UTC
Re: svn commit: r189955 - in /cocoon: blocks/scratchpad/trunk/java/org/apache/cocoon/acting/
blocks/scratchpad/trunk/samples/ blocks/scratchpad/trunk/samples/flow-action/
trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/
cziegeler@apache.org wrote:
> Author: cziegeler
> Date: Fri Jun 10 06:27:54 2005
> New Revision: 189955
>
> URL: http://svn.apache.org/viewcvs?rev=189955&view=rev
> Log:
> Add FlowAction that executes a function defined in flow script.
> Add hack to get the current flow Interpreter - we need a better way!!!!
Why do we add it at all? Some time ago we did not require flowscript to
sendPage so people used it for actions. Now we introduce a hackish
FlowAction to do what we've banned ourselves.
Or am I wrong?
--
Leszek Gawron lgawron@mobilebox.pl
IT 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
Re: svn commit: r189955 - in /cocoon: blocks/scratchpad/trunk/java/org/apache/cocoon/acting/
blocks/scratchpad/trunk/samples/ blocks/scratchpad/trunk/samples/flow-action/
trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/
Posted by Reinhard Poetz <re...@apache.org>.
Carsten Ziegeler wrote:
> Reinhard Poetz wrote:
>
>
>>Have you converted to a Javascript fan ;-)
>
> No, not really - but I'm fed up with writing all these unnecessary lines
> for java (package instruction, imports etc.) :) Flow is *soo* easy,
> just write cocoon.request.getParameter("something") and you have it.
> Compare that to the amount of lines, you have to write in Java (ok,
> you have support from your IDE, but Eclipse - even 3.1 - sucks in
> performance at least for me).
soon also OSX users can use the power of Intel processors ;-)
--
Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}
web(log): http://www.poetz.cc
--------------------------------------------------------------------
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
Re: svn commit: r189955 - in /cocoon: blocks/scratchpad/trunk/java/org/apache/cocoon/acting/
blocks/scratchpad/trunk/samples/ blocks/scratchpad/trunk/samples/flow-action/
trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/
Posted by Carsten Ziegeler <cz...@apache.org>.
Reinhard Poetz wrote:
>
> Have you converted to a Javascript fan ;-)
No, not really - but I'm fed up with writing all these unnecessary lines
for java (package instruction, imports etc.) :) Flow is *soo* easy,
just write cocoon.request.getParameter("something") and you have it.
Compare that to the amount of lines, you have to write in Java (ok,
you have support from your IDE, but Eclipse - even 3.1 - sucks in
performance at least for me).
Carsten
--
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/
Re: svn commit: r189955 - in /cocoon: blocks/scratchpad/trunk/java/org/apache/cocoon/acting/
blocks/scratchpad/trunk/samples/ blocks/scratchpad/trunk/samples/flow-action/
trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/
Posted by Reinhard Poetz <re...@apache.org>.
Carsten Ziegeler wrote:
> Leszek Gawron wrote:
>
>>Why do we add it at all? Some time ago we did not require flowscript to
>>sendPage so people used it for actions. Now we introduce a hackish
>>FlowAction to do what we've banned ourselves.
>>
>>Or am I wrong?
>>
>
> Don't know. Currently a sendPage is required in flow if you use the
> map:call function, so you can't use it.
> Actually I want to use flow script for prototyping different things,
> and not just only flow with continuations. The action is only a
> prototype to see what is possible and what is not. As long as we
> provide a clean way to get the interpreter we can remove the action.
> But the action is a proof that accessing the interpreter is
> currently not possible. So we should imho fix that.
yes we need this, especially to make inter block communiction possible:
var x = cocoon.blocks.blockA.myFunc();
> Using a script language enables faster prototyping!
Have you converted to a Javascript fan ;-)
(With the reloading classloader and Eclipse I'm more than satisfied with a usual
action and Java ;-)
--
Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}
web(log): http://www.poetz.cc
--------------------------------------------------------------------
Re: svn commit: r189955 - in /cocoon: blocks/scratchpad/trunk/java/org/apache/cocoon/acting/
blocks/scratchpad/trunk/samples/ blocks/scratchpad/trunk/samples/flow-action/
trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/
Posted by Carsten Ziegeler <cz...@apache.org>.
Leszek Gawron wrote:
>
> Why do we add it at all? Some time ago we did not require flowscript to
> sendPage so people used it for actions. Now we introduce a hackish
> FlowAction to do what we've banned ourselves.
>
> Or am I wrong?
>
Don't know. Currently a sendPage is required in flow if you use the
map:call function, so you can't use it.
Actually I want to use flow script for prototyping different things,
and not just only flow with continuations. The action is only a
prototype to see what is possible and what is not. As long as we
provide a clean way to get the interpreter we can remove the action.
But the action is a proof that accessing the interpreter is
currently not possible. So we should imho fix that.
Using a script language enables faster prototyping!
Carsten
--
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/