cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <DHo...@csir.co.za>
Subject Re: CForms - different views of the same widget
Date Tue, 13 Dec 2005 09:49:51 GMT
Cocoon Version 2.1.5 (but I could upgrade to 2.1.8 as 
this is for a new project).

>>> sylvain@apache.org 2005/11/11 11:55 PM >>>

Derek Hohls wrote:
> Christoph
>  
> If you look back at this thread, the idea is to have this in the
> form definition file i.e.
>  
>       <fd:on-value-changed>
>      <fd:javascript>
>        var thisWidget = event.source;
>        if ( thisWidget.getValue() == "" ) {
>          thisWidget.setState ( ACTIVE )
>        }  else  {
>         thisWidget.setState ( OUTPUT )
>        }
>       </fd:javascript>
>       </fd:on-value-changed> 
>  
> I do not think the "form.lookupWidget" approach works here...
> is there something else you can suggest?
>  
> When I try
>  
> thisWidget.setState ( 
> Packages.org.apache.cocoon.forms.formmodel.WidgetState.ACTIVE )
>  
> Then I get an "unknown setState() function" error.

What version of Cocoon are you using?

Sylvain

-- 
Sylvain Wallez                        Anyware Technologies
http://people.apache.org/~sylvain     http://www.anyware-tech.com 
Apache Software Foundation Member     Research & Technology Director


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org 
For additional commands, e-mail: users-help@cocoon.apache.org 




-- 
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
 
CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html 
 
CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html 
 
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to
HelpDesk@csir.co.za.


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message