cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Error- Accessing widgets in flowscript
Date Mon, 16 Jan 2006 15:51:12 GMT

I have some difficulties accessing the widget values in the flow script. 

var form = new Form("registration_definition.xml");
var wid = form.getWidget();
wid.message.value = cocoon.parameters.defaultMessage;

The last call throws this exception: 
org.mozilla.javascript.EcmaError: Cannot convert null to an object.

When I access the same widget in an jscript block in the form_definition
there is no problem. 

    var msg = this.lookupWidget("../message");
 msg.value = "Selecting." + + event.newValue ;

What is the problem here? 
I use the sitemap form the simple form example of the user guide.



Telefonieren Sie schon oder sparen Sie noch?
NEU: GMX Phone_Flat

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message