Thiago H. de Paula Figueiredo schrieb:
Em Wed, 21 Jan 2009 21:30:42 -0300, manuel aldana <ald...@gmx.de> escreveu:

looking at this layout injection pattern, i wonder whether a normal template, which references the dynamic site-parts directly wouldn't be even easier (i at least find it more intuitive as using the <t:body/> injection). what are the pros/cons for that?

The Layout pattern is just one ordinary Tapestry custom-made component.

The pros are the fact that you can each part in its own class/template pair. The con is that there is no way for a component to know what the main content is, as you named in your template below.

OK, but why does the layout component need to know what the main content is?

As in other mail mentioned the only (but major) cons I can see is that making the Layout as the main-entry page is not very flexible and breaks somehow the tapestry page concept.

--
manuel aldana
ald...@gmx.de
software-engineering blog: http://www.aldana-online.de


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

Reply via email to