I had another look at your documentation, and I've found the Layout example inside the Component templates ( http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html) page.
So basically, what you do is create a layout page, which will load all the shared js/css files and has setups the page. I tested it succesfully using the YUI reset-fonts-grids.css template. Next, I could insert another page in the part that you mark with <t:body/> (in this case, it's the main content area of the yui-t2 layout). The page you are inserting can therefore be very simple, and only contain a reference to the Layout template, and the body text (e.g.a beaneditform). However, is it also possible to insert multiple pages inside the layout, or would this mean inserting page into page into page? Second, how could the inserted page use AJAX, such that only this part of the page is regenerated? And now that I'm at it: I've used the beaneditform succesfully in a simple page, but when using it in a more complex page, the validation error messages don't show up again (the crosses do, as well as the red text). Any idea what could be the problem? On 6/10/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
A master page will inject the other pages. The other pages will expose methods for accessing Blocks and components within themselves. The master phase makes use of render phase methods and/or the Delegate component to control what renders and when. This is how BeanEditForm and Grid components operate (as of 5.0.5). On 6/10/07, Erik Vullings <[EMAIL PROTECTED]> wrote: > So how would you generate a mashup, consisting of multiple services/pages, > similar to a portal, using T5? > > Cheers > Erik > > > On 6/9/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > > > Here we go again ... > > > > Tapestry pages a very structured, in effect, static. This is core to > > Tapestry's approach towards scalability and maintenance of server side > > state. > > > > However, even though the page structure is static, the order in which > > components render is really under your control. Further, you can mix > > and match rendering of components from different pages. > > > > A render phase method is allowed to return a Block or a component or > > anything else that knows how to render, and that object will then take > > control of the rendering. > > > > This is how the BeanEditForm and Grid components operate; there are > > extra pages that contain components for different types of edittable > > data, and the BeanEditForm or Grid just chooses the correct Block of > > components to render based on the type of property being editted. > > > > I hope to flesh this out in a more advanced chapter of the tutorial. > > I'm currently converting it from PDF to HTML to allow more people to > > contribute to it. > > > > On 6/9/07, Vic Cekvenich <[EMAIL PROTECTED]> wrote: > > > One thing I did in Struts is decide which tile to load for of my users > > > into their layout. > > > > > > How do I in T5 have different layouts and different components load? > > > Normally in session I from DB load layout name and what components > > > (formerly tiles) go into each "zone" of the layout. > > > I would do an expression on a page to load them. > > > How would I do similar to tiles in T5? > > > > > > .V > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Howard M. Lewis Ship > > TWD Consulting, Inc. > > Independent J2EE / Open-Source Java Consultant > > Creator and PMC Chair, Apache Tapestry > > Creator, Apache HiveMind > > > > Professional Tapestry training, mentoring, support > > and project work. http://howardlewisship.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]