cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "roy huang" <lingererhu...@hotmail.com>
Subject [CForms]v2 sample broke in current cvs version
Date Sat, 08 May 2004 09:55:05 GMT
try http://localhost:8888/samples/blocks/forms/v2/example in current cvs build,
get error:
The undefined value has no properties. (file:/D:/eclipse/workspace/cocoon-2.1/build/webapp/samples/blocks/forms/v2/forms_flow_example.js;
line 37)

Original Exception: ConversionError: The undefined value has no properties. (file:/D:/eclipse/workspace/cocoon-2.1/build/webapp/samples/blocks/forms/v2/forms_flow_example.js;
line 37)
	at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:581)
	at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:541)
	at org.mozilla.javascript.ScriptRuntime.getProp(ScriptRuntime.java:716)
	at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(ContinuationInterpreter.java:694)
	at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(ContinuationInterpreter.java:190)
	at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(ContinuationInterpreter.java:138)
	at org.mozilla.javascript.continuations.InterpretedFunctionImpl.call(InterpretedFunctionImpl.java:121)
	at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1244)
...

    var wid = form.getWidget();
    //
    // 'wid' is a javascript wrapper of the Cocoon Form widget.
    //
    // Its subwidgets can be accessed by id.
    //
    // Each widget has a 'value' property to access or modify its value.
    //
    wid.email.value = "bar@www.foo.com";    <- here

Is getWidget() wrong by now? 
That's what mpo said in comments with form1.xml in cvs .

Making transition getWidget --> lookupWidget on the samples.
Note: We will need to mention this to our users, their installations will have the same transition.

Currently kept a getWidget() on the Form.js to return the underlaying java-widget of the Form.
Refactored the car and country-selector to abuse the new "../" path syntax.
   

Roy Huang
Mime
View raw message