cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <>
Subject Re: woody read only fields
Date Mon, 24 Nov 2003 18:38:11 GMT
On Mon, 2003-11-24 at 16:51, Leszek Gawron wrote:
> There seems to be a slight problem with woody if you want to work with a read
> only field. You have some options:
> 1. use wd:output
> The problem: cannot output field running if the parent is repeater and not
> form. This syntax works for top level widget:
> form.getWidget( "ouput_widget" ).setValue( "test value" );
> but this works only for object of _Form_ type.

Why doesn't this work if the parent is a repeater? Should be something
like this:

form.getWidget("myrepeater").getRow(0).getWidget("ouput_widget").setValue("test value");

>  getWidget() method cannot be
> resolved for a widget so you cannot do:
> var model = form.getModel();
> model.output_widget = "test value";

that's because the javascript widget wrapper doesn't support output
widgets. A patch for this has been provided here:
but it's not applied yet.

Bruno Dumon                   
Outerthought - Open Source, Java & XML Competence Support Center                

View raw message