I found it out myself. There is a javascript wrapper loaded at the
beginning of the flowscript:

cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/v2/Form.js");

But it looks like there are 3 different wrappers:

org/apache/cocoon/forms/flow/javascript/v2/Form.js
org/apache/cocoon/forms/flow/javascript/v3/Form.js
org/apache/cocoon/forms/flow/javascript/Form.js

These wrappers do not seem to be compatible. Which wrapper should be
used? Where are the differences? Does somebody know anything about this?

Thank you
Werner



Am Dienstag, den 11.10.2005, 20:11 +0200 schrieb werner:
> I have a question concerning the definition of a forms Model. I would
> like to get a reference to a widget with flow:
> 
> // load form definition
> var formEdit = new Form("forms/firmenEditDef.xml");           
> var wid = formEdit.getWidget();
> // get reference to widget called kundennr
> var kundennr = wid.lookupWidget("kundennr"));
> 
> The code above works. But it should also be possible to access the field
> by only writing:
> 
> var kundennr = wid.kundennr;
> 
> instead of the lookupWidget() thing (as shown in the car example). But
> it does not work and I don't know where to search for errors.
> 
> Does anybody have an idea why it does not work?
> 
> Thank's, 
> Werner
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
Fischer & Masik OEG
GEFi Informationstechnik und Datenservice
Reisenbauerring 5/1/12
A-2351 Wiener Neudorf

Tel: 02236 / 304 224
Fax: 02236 / 304 278
Mobil: 0676 528 97 57

Internet: http://www.gefi.at
e-mail:
persönlich: [EMAIL PROTECTED]
allgemein: [EMAIL PROTECTED]


*************************
Confidentiality Notice
*************************
The information contained in this Email, and any attachments, is
intended for the named recipients only. It may contain confidential
and/or privileged information. If you are not the intended
recipient, you must not copy, distribute, or take any action in
reliance on it. Any views expressed do not necessarily reflect the
views of the company.

If you receive this Email by mistake, please advise the sender by
using the reply facility in your Email software and then delete it.





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to