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/06/08 18:27:05 UTC

[T5] usage of library components without a path

So lets say I have a component in a component library called "FooBar"
and the name of the library is "example". So I could use the component
in my app like this:

<comp t:type="example/FooBar" />

but it would be really nice if it could just be used like this just like
the core library components:

<t:foobar />

So the question is, is this possible? How is it that the core module
components can be used this way?

-- 
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] usage of library components without a path

Posted by Ivan Dubrov <wf...@gmail.com>.
Dan Adams wrote:
> So lets say I have a component in a component library called "FooBar"
> and the name of the library is "example". So I could use the component
> in my app like this:
>
> <comp t:type="example/FooBar" />
>
> but it would be really nice if it could just be used like this just like
> the core library components:
>
> <t:foobar />
>   

try <t:example.foobar />

-- 
WBR,
Ivan S. Dubrov



Re: [T5] usage of library components without a path

Posted by Howard Lewis Ship <hl...@gmail.com>.
In 5.0.4 and above you should be able to use:

<t:example.foobar/>

i.e., use a dot in the element name where you would use a slash in the
component type.

On 6/8/07, Dan Adams <da...@ifactory.com> wrote:
> So lets say I have a component in a component library called "FooBar"
> and the name of the library is "example". So I could use the component
> in my app like this:
>
> <comp t:type="example/FooBar" />
>
> but it would be really nice if it could just be used like this just like
> the core library components:
>
> <t:foobar />
>
> So the question is, is this possible? How is it that the core module
> components can be used this way?
>
> --
> 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
>
>


-- 
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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