You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Howard Lewis Ship <hl...@gmail.com> on 2007/11/09 23:02:09 UTC
Re: Tapestry 5 problem?
I haven't documented how to create Tapestry component libraries yet.
Been kind of dragged all over the place.
In your AppModule class, add something like:
public static void
contributeComponentClassResolver(Configuration<LibraryMapping>
configuration)
{
configuration.add(new LibraryMapping("common", "com.reged"));
}
You can then reference your component as:
<span t:type="common/foo"> ... </span>
or
<t:common.foo> ... </t:common.foo>
for component com.reged.components.Foo.
On Nov 9, 2007 1:45 PM, Brandon Staton <br...@reged.com> wrote:
>
>
>
> Hey,
>
> I'm on the process of upgrading our current applications from Tapestry 3 to
> Tapestry 5. I'd like to put common components into a package like
> com.reged.components (subpackages as needed) and app-specific tapestry
> classes into packages like com.reged.sampleapp.pages for example. Based on
> having to make this setting in web.xml: tapestry.app-package to
> com.reged.sampleapp, Tapestry won't find any of the common components. Am I
> missing something?
>
> Let me know when you get a chance,
>
> Brandon S Staton
>
> Technical Projects Manager
>
> RegEd
> 2100 Gateway Centre Blvd.
>
> Suite 200
>
> Morrisville, NC 27560
>
> 919-653-5259 (phone)
>
> 919-653-6559 (fax)
>
> http://www.reged.com/
>
>
--
Howard M. Lewis Ship
Partner and Senior Architect at Feature50
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org