You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Eugene Kondrashev <eu...@gmail.com> on 2010/12/02 20:19:47 UTC

Recursive initialization with WTKX annotation

Hi, guys

I have two wtkx file. One including the other.
Let say they are 1.wtkx and 2.wtkx.

I wrote my own controller for 1.wtkx implementing Bindable interface.
All child nodes from 1.wtkx are successfully accessed throught the @WTKX
annotation.
The problem appears when I tried to access child node from 2.wtkx file that
is included in 1.wtkx.
Actually it is simply not inited.

So how can I workaround that?

Thanks,
Eugene

Re: Recursive initialization with WTKX annotation

Posted by Eugene Kondrashev <eu...@gmail.com>.
Inline flag done the thing
Thanks for the fast reply!

2010/12/2 Greg Brown <gk...@verizon.net>

> Are you trying to bind a value from 2.wtkx to your controller class? Have
> you tried specifying inline="true" in your <wtkx:include> tag?
>
> If this is not what you are trying to do, is your root element in 2.wtkx
> also Bindable?
>
> G
>
> On Dec 2, 2010, at 2:19 PM, Eugene Kondrashev wrote:
>
> > Hi, guys
> >
> > I have two wtkx file. One including the other.
> > Let say they are 1.wtkx and 2.wtkx.
> >
> > I wrote my own controller for 1.wtkx implementing Bindable interface.
> > All child nodes from 1.wtkx are successfully accessed throught the @WTKX
> annotation.
> > The problem appears when I tried to access child node from 2.wtkx file
> that is included in 1.wtkx.
> > Actually it is simply not inited.
> >
> > So how can I workaround that?
> >
> > Thanks,
> > Eugene
> >
>
>

Re: Recursive initialization with WTKX annotation

Posted by Greg Brown <gk...@verizon.net>.
Are you trying to bind a value from 2.wtkx to your controller class? Have you tried specifying inline="true" in your <wtkx:include> tag?

If this is not what you are trying to do, is your root element in 2.wtkx also Bindable?

G

On Dec 2, 2010, at 2:19 PM, Eugene Kondrashev wrote:

> Hi, guys
> 
> I have two wtkx file. One including the other.
> Let say they are 1.wtkx and 2.wtkx.
> 
> I wrote my own controller for 1.wtkx implementing Bindable interface.
> All child nodes from 1.wtkx are successfully accessed throught the @WTKX annotation. 
> The problem appears when I tried to access child node from 2.wtkx file that is included in 1.wtkx.
> Actually it is simply not inited.
> 
> So how can I workaround that?
> 
> Thanks, 
> Eugene
>