Re: T5 : declaration of pages and components packages from a library

2008-01-09 Thread Chris Lewis
While we're tossing out ideas, I accomplish the same thing without subclasses using layout components, which themselves (seamlessly) handle common CSS via @IncludeStyleSheet (or whatever its called). Any page (or component for that matter) that has specific styles (or scripts) can additionally

Re: T5 : declaration of pages and components packages from a library

2008-01-08 Thread Daniel Jue
I have a few components and pages that I extend, and I put them in a directory called "base", at the same level as the pages and components packages. For instance I have an AbstractReportPage that references Tapestry ASOs, Injects things and Persists things. Then I have a few report page classes

Re: T5 : declaration of pages and components packages from a library

2008-01-08 Thread Shing Hing Man
Have you tried the following ? Suppose org.man.tapestry5.components will hold the new components. 1) add the following to AppModule public static void contributeComponentClassResolver(Configuration configuration) { // Creates a virtual root pacakge for pages,components.

Re: T5 : declaration of pages and components packages from a library

2008-01-08 Thread Chris Lewis
Hi Steph, The problem is probably that you are trying to extend a class that exists in your pages package. As documented here (http://tapestry.apache.org/tapestry5/tapestry-core/guide/component-classes.html), you must put such base classes in a 'base' package. I'm not sure if the package must

T5 : declaration of pages and components packages from a library

2008-01-08 Thread Steph
Hi all, I need to import in my tap5 project a library which includes tap5 pages and components. But when i try to extend a page from the library in my project, i get the following exception : java.lang.RuntimeException: Base class com.mylibrary.pages.FramePage (super class of com.myproject.pages.