forms v2

2004-12-08 Thread Jan Hoskens
Hi, I'm currently using forms.js v2 for one of my sites. This because I need the ability to create a form with a Node, not with a URI. This did help me at that time, but now I need to pass some bizdata to the form.showForm() function and it seems like v2 does not have a bizdata parameter and

Forms V2 foolishness

2004-11-29 Thread Andrew M
x-tad-biggerHi, I have just across a problem with forms version 2 that makes no sense. In my flowscript (cocoon 2.1.5.1) I do: cocoon.load(resource://org/apache/cocoon/forms/flow/javascript/v2/Form.js); function myFunc(){ var form = new Form(forms/register.xml); var bizData = form.getWidget();

Re: Forms V2 foolishness

2004-11-29 Thread Andrew M
Any ideas anybody? Just to add to what i mentioned earlier, if I assign a value to the problem line as so: bizData.fname.value = object.getSomeVal(); all works fine! What is going on here? How can you have an undefined value with no properties? I'm trying to assign a string value. The magic

Re: Forms V2 foolishness

2004-11-29 Thread Andrew M
Any ideas? On 29 Nov 2004, at 11:18, Andrew M wrote: Any ideas anybody? Just to add to what i mentioned earlier, if I assign a value to the problem line as so: bizData.fname.value = object.getSomeVal(); all works fine! What is going on here? How can you have an undefined value with no

Re: Forms V2 foolishness

2004-11-29 Thread Bruno Dumon
If I were you I wouldn't loose too much time on v2, since it will be removed in the future. The non-v2 api is the one you should use. On Mon, 2004-11-29 at 12:39 +, Andrew M wrote: __ Any ideas? On 29 Nov 2004, at

Re: Forms V2 foolishness

2004-11-29 Thread Andrew M
Bruno, thanks for that Andrew On 29 Nov 2004, at 13:14, Bruno Dumon wrote: If I were you I wouldn't loose too much time on v2, since it will be removed in the future. The non-v2 api is the one you should use. On Mon, 2004-11-29 at 12:39 +, Andrew M wrote:

jxpath and forms v2

2004-11-28 Thread Aurélien DEHAY
Hello. I'm trying to use jxpath logicsheet with cforms v2. I've got the following in my .js: form.showForm(protected-creer-contenu-0); cocoon.sendPage(protected-creer-contenu-final, wid); The protected-creer-contenu-final is the pipeline who launch a xsp. When I use jpath:value-of

Re: jxpath and forms v2

2004-11-28 Thread Andrew M
Hi, try this: x-tad-bigger /x-tad-biggerx-tad-biggervar/x-tad-biggerx-tad-bigger model = form.getModel(); /x-tad-biggerx-tad-biggervar/x-tad-biggerx-tad-bigger bizData = {/x-tad-biggerx-tad-biggernext/x-tad-biggerx-tad-bigger : model.content_type} Andrew /x-tad-bigger On 28 Nov 2004, at 18:32,

Re: jxpath and forms v2

2004-11-28 Thread Aurélien DEHAY
Andrew M wrote: Hi, try this: var model = form.getModel(); var bizData = {next : model.content_type} Andrew Hi. I've got the following error: getModel is not a function. I'm trying to use the v2 forms version, but I'm think I will stay with the v1. Rgds.

Re: jxpath and forms v2

2004-11-28 Thread Andrew M
Hi, make sure that you have the following at the top of your page: 1. x-tad-biggercocoon.load(/x-tad-biggerx-tad-biggerresource://org/apache/cocoon/forms/flow/javascript/Form.js/x-tad-biggerx-tad-bigger); and in your function: /x-tad-biggerx-tad-biggervar/x-tad-biggerx-tad-bigger form =

Re: jxpath and forms v2

2004-11-28 Thread Aurélien DEHAY
Andrew M wrote: Hi, make sure that you have the following at the top of your page: 1. cocoon.load(resource://org/apache/cocoon/forms/flow/javascript/Form.js); I'm trying to use cocoon.load(resource://org/apache/cocoon/forms/flow/javascript/v2/Form.js); Rgds.

Re: jxpath and forms v2

2004-11-28 Thread Aurélien DEHAY
Andrew M wrote: The getModel function is _not_ defined in v2/Forms. It can't work. I've switched back to v1. Rgds. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]