You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Matt78 <m....@box68.net> on 2010/02/01 17:30:17 UTC
[T5] Component Param in a Mixin
Hy,
I'm writing a mixin which schould copy the text inside one component to
another component on a page unsing javascript.
My question: How can I use a component as a parameter, because i need from
both comopnents the id.
Both components exists in different zones.
thx
--
View this message in context: http://n2.nabble.com/T5-Component-Param-in-a-Mixin-tp4495265p4495265.html
Sent from the Tapestry Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5] Component Param in a Mixin
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Mon, 01 Feb 2010 14:30:17 -0200, Matt78 <m....@box68.net> wrote:
> Hy,
Hi!
> I'm writing a mixin which schould copy the text inside one component to
> another component on a page unsing javascript.
> My question: How can I use a component as a parameter, because i need
> from both comopnents the id.
You can inject the component at which you're using the mixin with
@InjectComponent. A component can be a parameter as any other, just make
sure you're using the component binding: component:.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da
Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org