You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Dan Adams <da...@ifactory.com> on 2007/10/12 18:39:19 UTC
[T5] injecting embedded components
So I know you can get an embedded component using
ComponentResources.getEmbeddedComponent() but is there no way to inject
one using something like this:
@Inject
private MyComponent componentName;
--
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.5857
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5] injecting embedded components
Posted by Dan Adams <da...@ifactory.com>.
Sorry, should have waited 5 minutes before complaining. It was a
side-effect of the extension changing from html to tml (combined with
not having lunch yet).
On Fri, 2007-10-12 at 09:54 -0700, Josh Canfield wrote:
> You can use the @Component annotation to get a reference to a component in
> your template.
>
> http://tapestry.apache.org/tapestry5/tapestry-core/guide/component-classes.html
>
> @Component(parameters =
> { "start=5", "end=1", "value=countValue" })
> private Count _count;
>
> Josh
>
> On 10/12/07, Dan Adams <da...@ifactory.com> wrote:
> >
> > So I know you can get an embedded component using
> > ComponentResources.getEmbeddedComponent() but is there no way to inject
> > one using something like this:
> >
> > @Inject
> > private MyComponent componentName;
> >
> > --
> > Dan Adams
> > Senior Software Engineer
> > Interactive Factory
> > 617.235.5857
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
--
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.5857
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5] injecting embedded components
Posted by Josh Canfield <jo...@thedailytube.com>.
You can use the @Component annotation to get a reference to a component in
your template.
http://tapestry.apache.org/tapestry5/tapestry-core/guide/component-classes.html
@Component(parameters =
{ "start=5", "end=1", "value=countValue" })
private Count _count;
Josh
On 10/12/07, Dan Adams <da...@ifactory.com> wrote:
>
> So I know you can get an embedded component using
> ComponentResources.getEmbeddedComponent() but is there no way to inject
> one using something like this:
>
> @Inject
> private MyComponent componentName;
>
> --
> Dan Adams
> Senior Software Engineer
> Interactive Factory
> 617.235.5857
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.