cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Re: Loading a form from a DOM tree
Date Thu, 11 Nov 2004 10:52:44 GMT
Eirik Bjørsnøs wrote:

>
> Hello Cocoon developers,
>
> Would it be possible to load a form from a DOM tree instead of from a 
> uri using the javascript flow api?
>
> I'm creating a multiform wizard using Cocoon Forms and would like to 
> put all the form definitions inside the same wizard.xml file.
>
> DefaultFormManager has  a createForm(Element formElement) method, but 
> Form.js does not seem to support it. You can only do like this:
>
> var form = new Form(formUri);
>
> not like this:
>
> var form = new Form(formElement);
>
> Looking forward to hearing your opinion.


Well, if FormManager already supports it, I see no problem in exposing 
it in the Form JS object.

Sylvain

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


Mime
View raw message