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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]