Re: Templating with Tapestry 5

2007-04-27 Thread bjornharvold
Nice - thanks :-) -- View this message in context: http://www.nabble.com/Templating-with-Tapestry-5-tf3659025.html#a10226122 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL

Re: Templating with Tapestry 5

2007-04-27 Thread Yann Ramin
Went down this road recently. You have a Layout component (call it what you want) some static stuff and each page uses the layout; body body if you want more flexibility, you can pass in other components as parameters, and use t:delegate to render them body body

Re: Templating with Tapestry 5

2007-04-27 Thread Konstantin Ignatyev
ecific > >> information. > >> >> > >> >> Then Layout.html would look something like: > >> >> > >> >> > >> >> Layout.java looks like this: > >> >> class Layout { > >> >> private String

Re: Templating with Tapestry 5

2007-04-27 Thread bjornharvold
r; >> >> >> >> accessors here >> >> } >> >> >> >> The problem occurs because Layout.html does NOT >> grab >> >> the injected string >> >> names put resolves the component to be o

Re: Templating with Tapestry 5

2007-04-27 Thread Konstantin Ignatyev
e of type > >> navbar which does not exist. > >> > >> I am doing this because the look-and-feel of the > >> application carries 3 > >> layers of components. The layers have just been > >> created to wrap the > >&

Re: Templating with Tapestry 5

2007-04-27 Thread bjornharvold
because the look-and-feel of the >> application carries 3 >> layers of components. The layers have just been >> created to wrap the >> components in Yahoo UI divs mostly. I don't want to >> have to redo the default >> layout on every tapestry page if somethin

Re: Templating with Tapestry 5

2007-04-27 Thread Konstantin Ignatyev
ut and inject components > into the layout. The > layout class doesn't know what component goes where, > it should just hold a > basket of injected components and the template > should know where to put the > components. > > Any ideas?... or is there a better way? >

Templating with Tapestry 5

2007-04-27 Thread bjornharvold
inject components into the layout. The layout class doesn't know what component goes where, it should just hold a basket of injected components and the template should know where to put the components. Any ideas?... or is there a better way? -- View this message in context: http://www.n