On Tue, 11 Jan 2011 13:02:03 -0200, Taha Hafeez <tawus.tapes...@gmail.com> wrote:

Hi

Hi!

Can I hide a component in code. Say I have

class Page {

@Component
private Select select;

}
Now I want to hide select in code(not in template using <t:if>), how can i do that ?

If it's just hiding, use CSS for that. If you don't want the component to be rendered at all, there's two scenarios:

* Component which you can change its code: make it return false on @BeginRender. This could be made into a mixin. * Component which you cannot change its code: no way to do it unless you write a mixin.

--
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

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

Reply via email to