You can use composition Embed that component inside your component, and publish its properties.
See the last topics of this page http://tapestry.apache.org/component-parameters.html regards Taha 2011/5/13 Clément Uster <clement.us...@gmail.com> > Thanks for your very quick answer. :) > > What do you suggest if extending component isn't recommended ? > Rewritting it ? > > I can't create getters and setters since the component belongs to another > library. > I guess this shouldn't happen if the component had more entry points. > > > > 2011/5/13 Thiago H. de Paula Figueiredo <thiag...@gmail.com> > > > On Fri, 13 May 2011 10:11:19 -0300, Clément Uster < > clement.us...@gmail.com> > > wrote: > > > > Hi everyone, > >> > > > > Hi! > > > > > > Let's imagine I have a component (coming from a component library) that > >> has an "index" property. So index has the @Property annotation. > >> > >> I want to create a component that extends the previous component. > >> > > > > Extending components is allowed but not recommended. > > > > > > And I want to test "index"'s value to change component's behaviour... > how > >> can I do this ? As long as "index" is private from the first component > and > >> there is no > >> "getIndex()" method (thanks to @Property). > >> > > > > Use getter and setter in the base component instead of @Property. > > > > -- > > Thiago H. de Paula Figueiredo > > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, > > and instructor > > Owner, Ars Machina Tecnologia da Informação Ltda. > > http://www.arsmachina.com.br > > >