Once you have imported the class (using importClass()), you should be able
to reference the class directly, so you should be able to something like:

importClass(Packages.org.apache.cocoon.forms.formmodel.WidgetState);
.
.
.
setState(WidgetState.ACTIVE);


HTH,
Ian

It's better to be hated for who you are
than loved for who you are not

Ian D. Stewart
Appl Dev Analyst-Advisory, DCS Automation
JPMorganChase Global Technology Infrastructure
Phone: (614) 244-2564
Pager: (888) 260-0078


                                                                                
                                                       
                      "Daniele Madama"                                          
                                                       
                      <[EMAIL PROTECTED]        To:       
[email protected]                                                       
                      cs.it>                   cc:                              
                                                       
                                               Subject:  Re: CForms - different 
views of the same widget                               
                      11/04/2005 08:51                                          
                                                       
                      AM                                                        
                                                       
                      Please respond to                                         
                                                       
                      users                                                     
                                                       
                                                                                
                                                       




> This is "setState(org.apache.cocoon.forms.formmodel.WidgetState.ACTIVE)"
>
> Alternately, you can also
> "importClass(org.apache.cocoon.forms.formmodel.WidgetState)" either in
> your event handler or in the flowscript that shows the form, if you're
> using flowscript.
>
> Sylvain

IIRC looking at doc [1] you must add 'Packages.' before package
declaration, so the above hint became:

setState(Packages.org.apache.cocoon.forms.formmodel.WidgetState.ACTIVE)

and

importClass(Packages.org.apache.cocoon.forms.formmodel.WidgetState)

Regards
Daniele

[1] http://cocoon.apache.org/2.1/userdocs/flow/java.html

--
The box said "Requires Windows 95/98/Me/Nt/2k/XP or better" .... so I
installed Linux !
-o=|=o-

Daniele Madama

Pro-netics s.r.l.
Via Elio Lampridio Cerva 127/c
Roma
Tel. 0651530849
http://www.pronetics.it


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




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