You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Martin Dietze <di...@fh-wedel.de> on 2007/06/11 11:14:14 UTC
Re: T5: inherited @Parameter's in component classes
Hi,
On Fri, June 08, 2007, Martin Dietze wrote:
> I tried to inherit some compoment classes from an abstract
> component base class which contains some propeties the above
> share. In the template I would then use these components like
> this:
>
> <t:myConcreteComponent myCommonParam="someValue">
>
> In the base class I have:
>
> @Parameter
> private String _myCommonParam;
>
> public String getMyCommonParam() { return _myCommonParam; }
> public void setMyCommonParam(myCommonParam) { _myCommonParam = myCommonParam; }
>
> However it seems like the member variable in the base class
> never gets touched, the getters and setters not used.
I forgot to mention that putting the above code directly
into my component class works flawlessly, it only seems like
the @Parameter does not survive inheritance...
Cheers,
Martin
--
----------- / http://herbert.the-little-red-haired-girl.org / -------------
=+=
Es gibt Themen genug in Deinem eigenen Leben, und wenn sie einmal ausgehn,
gibt es Themenlaeden. -- Die Sterne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org