cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
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:
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106944852602669&w=2
but it's not applied yet.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


Mime
View raw message