cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bart remmerie" <remme...@gmail.com>
Subject Re: How to get this widget
Date Tue, 06 Mar 2007 09:21:04 GMT
Could you please give the use case for this ?
I think there could be a more simple solution (if the use case is what
I think it is).

Bart

2007/3/6, Jason Johnston <cocoon@lojjic.net>:
> 許議中 wrote:
> > using repeaterList.getRow(i).lookupWidget("item/01/url"); --- it's ok.
> >
> > But repeaterList.getRow(i).getChild("item/01/url");  --it'not. why?
>
> The getChild() method only gets direct children; lookupWidget() allows
> you to use an xpath-like path for easier traversal.  So:
>
>   widget.lookupWidget("item/01/url")
>
> is the same as:
>
>   widget.getChild("item").getChild("01").getChild("url")
>
>
> > and additional Question, How to binding this kind of form in to javabeans.
> >
> > one type table(type01/type02...) refer to a independent table.
>
> Can you elaborate on this question?  I don't understand what you're asking.
>
> Are you already using the CForms binding framework?
>
>
> >
> >
> >
> > Jason Johnston 提到:
> >> 許議中 wrote:
> >>
> >>> In Javascript (FlowScript)
> >>>
> >>> There're several rows in the repeater, I can get the itemno wigdet with
> >>> repeaterList.getRow(i).getChild("itemno")
> >>>
> >>> But I can't get the url widget in the 01 group.
> >>
> >> What have you tried?  If I understand your example it should be
> >> something like:  repeaterList.getRow(i).lookupWidget("item/01/url");
> >>
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


-- 
Bart Remmerie
Mime
View raw message