You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jens Breitenstein <ma...@j-b-s.de> on 2011/08/13 14:26:27 UTC

component inheritance T5.2.5

hi All!

I have some trouble concerning component inheritance. My scenario is 
something like:


A.tml
----
<div xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
     xmlns:p="tapestry:parameter" class="mini-basket-items">
<t:extension-point id="MBIV">
<a href="${valueForA}"/>
</t:extension-point>
</div>


A.class
------
public class A
{
     public String getValueForA()
     {
         return "a";
     }
}


B.class
------
public class B extends A
{
     public String getValueForA()
     {
         return "b";
     }
}



there is no tml provided by B thus A's tml should be fully reused. the 
expression "valueForA" always returns "a" and the overridden method in 
class "B" is never called. is there additional configuration required to 
make it working?


Thanks again

Jens



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org