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 be named 'base', but I know that you cannot have base
classes in 'pages', 'components', and probably not in 'mixins.' This is
because T5 does some magic on these classes at runtime, and extending
them would apparently cause failures.
On a personal note, I if you find yourself extending pages you may want
to reexamine your design. This is just my opinion, but I'm a firm
believer in shallow class hierarchies, and being that T5 provides such a
rich environment for composite behavior without subclassing (via
services and mixins especially), I avoid page extention.
sincerely,
chris
Steph wrote:
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.Start) is not in a controlled
package and is therefore not valid. You should try moving the class to
package com.myproject.base.
Should i declare the 'pages' and 'components' directories of my library
in the tapestry.app-package context of my web.xml ? If yes, what is the
syntax to do such a declaration ?
Thanks in advance.
Stephane
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]