On Sun, 21 Feb 2010 16:19:58 -0300, Alexander Kiel <alexanderk...@gmx.net>
wrote:
ok this is possible. But than I have at least one big if-then-else
statement in my page and that page has both components loaded, a grid
and a beandisplay (if we stay simple). If I use two separate pages, I
have no if-then-else nightmare and my pages are much lighter.
Just create one <t:block> for each possible rendering and then use the
Delegate component to render one of them. No big if-then-else needed. This
approach is described here:
http://tapestry.apache.org/tapestry5.1/cookbook/switch.html
--
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