cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JD Daniels ...@datatrio.com>
Subject Re: [ CForms ] lookupWidget(path)
Date Mon, 09 Aug 2004 20:25:06 GMT
try:

var form = new Form(cocoon.parameters["form-definition"]);
var model = form.getWidget();
var list = model.list;

Timur Izhbulatov wrote:

> Hi all!
> When I use v1 flow and the following code, I get the right value of 
> the list:
>    var form = new Form(cocoon.parameters["form-definition"]);
>    var list = form.getModel().list;
> But when I try using v2 and lookupWndget("list") list is undefined. 
> Namely, I do the following thing:
>    var form = new Form(cocoon.parameters["form-definition"]);
>    var list = form.lookupWidget("list");
> What's wrong?
> Any help is appreciated.
> Timur
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>


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


Mime
View raw message