On Mon, 22 Feb 2010 11:33:56 -0300, Andy Pahne <andy.pa...@gmail.com>
wrote:
I am really wonderung why an abstract class cannot be used as component
(page) class.
Because it needs to be instantiated.
The reason why I am wondering:
Let's suppose I have a few pages with some shared functionality. I'd
like to create a base class:
public abstract class BasePage{
@Property
private Object someProp;
public abstract Object getSomeProp();
public void setSomeProp(Object someProp)
}
Put BasePage in the base package, not the components or pages one.
Abstract classes are allowed there.
By the way, you cannot use @Property in a property with getters and
setters.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da
Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org