You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Sylvain Wallez <sy...@anyware-tech.com> on 2003/09/28 20:40:19 UTC

Re: Woody Event handlers are isolated !

Ramy Mamdouh wrote:

> Hello,
>
> The new woody event handling looks really promising, but I'm concerned 
> with the listeners being isolated from the rest of the application.
>
> Is there any way we can provide the listeners with, say, the 
> ServiceManager and some logger (the avalon life cycle stuff maybe)?
>
> or maybe with the 'cocoon' object that's available from the javascript?
>
> What do you think about this issue? 


That's exactly what I plan to do now ;-)

I want to introduce in Woody the pattern I used in the TreeProcessor : 
each widget definition and each listener will go through the Avalon 
lifecycle.

For JavaScript listeners, the I'd like to provide the "cocoon" object, 
with the exception that sendPage() and sendPageAndWait() won't be 
available. And if the form is called by a flowscript, also make the 
global variables (i.e. the session scope) available.

Sylvain

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -  http://www.orixo.com



Re: Woody Event handlers are isolated !

Posted by Sylvain Wallez <sy...@anyware-tech.com>.
Carsten Ziegeler wrote:

>Sylvain Wallez wrote:
>  
>
>>Sylvain Wallez wrote:
>>
>><snip/>
>>    
>>
>>>For JavaScript listeners, the I'd like to provide the "cocoon" object, with the exception that sendPage() and sendPageAndWait() won't be available. And if the form is called by a flowscript, also make the global variables (i.e. the session scope) available.
>>>      
>>>
>>Done, even if committed a few minutes after the code freeze announcement :-/
>>    
>>
>Yep, and the eyes of the release manager did notice this!
>

Please, please, Mr Beloved Release Manager, don't hit me ;-D

>So, I suggest that this costs you a round of free beer for the release manager at the GT ;)  He really likes Belgium beer!
>
>(don't take this seriously, it's a joke. Although...)
>

Well, I already owe you so much beers since last year that you really 
will have it ;-)

Sylvain

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -  http://www.orixo.com



RE: Woody Event handlers are isolated !

Posted by Carsten Ziegeler <cz...@s-und-n.de>.
Sylvain Wallez wrote:
> 
> Sylvain Wallez wrote:
> 
> <snip/>
> 
> > For JavaScript listeners, the I'd like to provide the "cocoon" object, 
> > with the exception that sendPage() and sendPageAndWait() won't be 
> > available. And if the form is called by a flowscript, also make the 
> > global variables (i.e. the session scope) available.
> 
> 
> Done, even if committed a few minutes after the code freeze 
> announcement :-/
> 
Yep, and the eyes of the release manager did notice this! So, I suggest
that this costs you a round of free beer for the release manager at the 
GT ;)  He really likes Belgium beer!

(don't take this seriously, it's a joke. Although...)

Carsten



Re: Woody Event handlers are isolated !

Posted by Sylvain Wallez <sy...@anyware-tech.com>.
Sylvain Wallez wrote:

<snip/>

> For JavaScript listeners, the I'd like to provide the "cocoon" object, 
> with the exception that sendPage() and sendPageAndWait() won't be 
> available. And if the form is called by a flowscript, also make the 
> global variables (i.e. the session scope) available.


Done, even if committed a few minutes after the code freeze announcement :-/

For Java listeners as Avalon components, you'll have to wait for the 
2.1.2 to be out.

Sylvain

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -  http://www.orixo.com



Re: Woody Event handlers are isolated !

Posted by Ramy Mamdouh <ra...@imkenberg.net>.
Hello Sylvain,

Sylvain Wallez wrote:
> Ramy Mamdouh wrote:
> 
>> Hello,
>>
>> The new woody event handling looks really promising, but I'm concerned 
>> with the listeners being isolated from the rest of the application.
>>
>> Is there any way we can provide the listeners with, say, the 
>> ServiceManager and some logger (the avalon life cycle stuff maybe)?
>>
>> or maybe with the 'cocoon' object that's available from the javascript?
>>
>> What do you think about this issue? 
> 
> 
> 
> That's exactly what I plan to do now ;-)
> 
> I want to introduce in Woody the pattern I used in the TreeProcessor : 
> each widget definition and each listener will go through the Avalon 
> lifecycle.

That's exactly what I dreamed to see, and it will be really cool :-)
Thanks a lot for your great efforts.

> 
> For JavaScript listeners, the I'd like to provide the "cocoon" object, 
> with the exception that sendPage() and sendPageAndWait() won't be 
> available. And if the form is called by a flowscript, also make the 
> global variables (i.e. the session scope) available.
> 
> Sylvain
> 

-- 
Ramy Mamdouh Kamel
ramy@imkenberg.net