Derek Hohls schrieb:
Hello,
> I cannot the import class to work - I have added:
>
> importClass(Packages.org.apache.cocoon.forms.formmodel.WidgetState);
>
> at the start of the flowscript; and get the error:
>
> org.mozilla.javascript.EvaluatorException:
> "file:/D:/tomcat/webapps/cocoon/projects/inddb/script/dbtest.js", line 14:
> Not a Java class: [JavaPackage org.apache.cocoon.forms.formmodel.WidgetState]
>
> Any ideas how to do th eimport correctly?
I just use it directly:
form.lookupWidget("mywidget").setState(Packages.org.apache.cocoon.forms.formmodel.WidgetState.DISABLED);
This works fine.
HTH
Christoph
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]