« Return to Thread: access component variable

Re: Re: Re: access component variable

by Captain Cid :: Rate this Message:

Reply to Author | View in Thread

nille hammer wrote:
Hi Cid,

I have just been to the toilett and have thought about your question. Maybe you could nest component B in component A directly rather than in the page? Example follows:

in page.tml
...
<t:a .../>
...

in a.tml
...
<render the stuff from a>
<t:b parameter="valueFromA">
^^^^^^^^^^^^^^^^^^^^
how can i get value from A ?
suppose A has variable
private String ID;

public String getId() {
    return ID;
}

can i use <t:b ID="Id"> ?
...

Would that be an option?

Regards, nillehammer

==
http://www.winfonet.eu


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

 « Return to Thread: access component variable