cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Re: Endless loop in CForms when there's no submit widget: bug ?
Date Fri, 13 May 2005 10:11:10 GMT
Luca Morandini wrote:

> Sylvain Wallez wrote:
>
>> Hmm... strange. A number of form samples have no explicit submit 
>> widget and (seem to) work correctly.
>
>
> Ahem... ashamed to say my flowscript auto-loaded itself (I was 
> cutting&pasting way too fast to notice), resulting in a really weird 
> behaviour: by chance it worked when I added the submit widget and I 
> jumped to the wrong conclusion :(
>
> Funny to notice sometimes it worked though :|
>
> So, if you want see something really weird, try writing a flowscript 
> like this (name it "main.js"):
>
> cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form.js"); 
>
> cocoon.load("flow/main.js"); // It loads itself !


Wow, very cool :-)

I'm wondering how this could even start working!

> function showMap () {
>     var frm;
>     
>     frm= new Form("cocoon:/fd-themes-legend.xml");
>     frm.showForm("form-themes-legend.html");
>     cocoon.sendPage("/message.html", null);
> }
>
> Sorry for wasting your time, Sylvian :(


No problem!

Sylvain

-- 
Sylvain Wallez                        Anyware Technologies
http://apache.org/~sylvain            http://anyware-tech.com
Apache Software Foundation Member     Research & Technology Director


Mime
View raw message