Wasn't there something about being able to push components onto the render stack at runtime?
ahh: http://www.nabble.com/T5%3A-Pushing-Multiple-Components-into-Render-Queue-td16699167.html#a16706639 might help. on thet5 website there are page lifecycle methods, I guess you hook in there (renderBody?) All my stuff is pretty straight forwards, so I really don't see why you can't use joshes example... but requirements are requirements. good luck On Tue, Apr 15, 2008 at 9:56 PM, Adam Zimowski <[EMAIL PROTECTED]> wrote: > If you succeed with that, could you share it with the list? I'd also > be very interested in something like this. Perhpas it could be the > start to a useful 3rd party lib. > > On Tue, Apr 15, 2008 at 3:47 PM, János Jarecsni > <[EMAIL PROTECTED]> wrote: > > "In the worst case I will compile the TML on the fly using JSP and then > > forward to Tapestry" > > > > I mean I will use JSP to _generate_ the TML (my use of the word compile > may > > not be the best here :)) > > > > Cheers, > > Janos > > > > > > > > On 15/04/2008, János Jarecsni <[EMAIL PROTECTED]> wrote: > > > > > > Hi Josh, > > > > > > hm, this would be a pity... it is relatively easy to imagine a > scenario > > > where the component should be "lately bound", I mean resolved only at > > > runtime. I can imagine generic TMLs which only specify placeholders > for > > > components, and it depends on some configuration what components to > link > > > into those placeholders. My intention is to move away from the > page-centric > > > approach of Tapestry toward this more dynamic strategy, where the > page tml > > > works as a generic template. Hope this is possible somehow... In the > worst > > > case I will compile the TML on the fly using JSP and then forward to > > > Tapestry? Uh hah :) > > > > > > Thanks for the reply! > > > Janos > > > > > > On 15/04/2008, Josh Canfield <[EMAIL PROTECTED]> wrote: > > > > > > > > Tapestry wants to know about all the components that a page is > going > > > > to render up front. If you want to dynamcially include a component > > > > you'll have to include that component in the template somewhere so > > > > that you can get a handle to it. > > > > > > > > For instance, you can have a component that has: > > > > > > > > <t:delegate to="footerBlock"/> > > > > > > > > <t:block id="footerWhite"> > > > > <t:myWhiteFooter/> > > > > </t:block> > > > > > > > > <t:block id="footerRed"> > > > > <t:myRedFooter/> > > > > </t:block> > > > > > > > > then in your component class you can implement > > > > > > > > @Parameter > > > > private String _color; > > > > > > > > @Inject > > > > private Block footerWhite; > > > > > > > > @Inject > > > > private Block footerRed; > > > > > > > > Block getFooterBlock() { > > > > if ( _color.equals("white") ) { > > > > return footerWhite; > > > > } else { > > > > return footerRed; > > > > } > > > > > > > > I'm don't know of a way to iterate over all the blocks contained in > a > > > > component... > > > > > > > > Josh > > > > > > > > On Tue, Apr 15, 2008 at 1:10 PM, János Jarecsni > > > > > > > > <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi again, > > > > > > > > > > is there a way for a little bit more dynamic inclusion of a > component? > > > > > > > > > > Say instead of <t:footer/> I'd like to iterate through a registry > of > > > > > components and include some of them in a page, like: > > > > > > > > > > <t:include-component t:id="someValue"/> (someValue is not a > literal). > > > > > > > > > > It would be vital for what I'm up to :) > > > > > > > > > > > > > > > Thanks again > > > > > Janos > > > > > > > > > > > > > > > On 14/04/2008, Michael Gerzabek <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > Then I was to fast too! ;-) > > > > > > > > > > > > Michael Gerzabek schrieb: > > > > > > > > > > > > > Hi Janos, > > > > > > > > > > > > > > Could you elaborate a little bit more on what you wanna do? > > > > > > > > > > > > > > Have a look at the basic principles of T5 [1], especially > > > > Principle #1 > > > > > > > might be of interest for you. > > > > > > > > > > > > > > Maybe you are just looking on how create dynamic layouts then > go > > > > to the > > > > > > > mailing list with keywords dynamic and static [2]. > > > > > > > > > > > > > > Not sure this helps, > > > > > > > Michael > > > > > > > > > > > > > > [1] http://tapestry.apache.org/tapestry5/ > > > > > > > [2] > > > > > > > > > > > > http://www.nabble.com/forum/Search.jtp?query=T5+static+dynamic&local=y&forum=340&daterange=0&startdate=&enddate= > > > > > > > > > > > > > > > > > > > > > János Jarecsni schrieb: > > > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > > > > > I'm new to Tapestry technology and to this mailing list, > and I > > > > have a > > > > > > > > question. I'd like to "dynamically" create .TMLs... So > instead > > > > of > > > > > > > > having > > > > > > > > static pages (Start.tml, Login.tml), I'd like to construct > > > > Tapestry > > > > > > > > pages on > > > > > > > > the fly (by including page parts, which are other .tmls). > I've > > > > been > > > > > > > > looking > > > > > > > > for some "include" component whatsoever, but found nothing. > > > > Except for > > > > > > > > the > > > > > > > > PageLayout component, which does something similar, just > the > > > > other way > > > > > > > > around. Could you point me to some workaround or existing > > > > solution? > > > > > > > > > > > > > > > > Cheers > > > > > > > > Janos > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > -- > > > > TheDailyTube.com. Sign up and get the best new videos on the > internet > > > > delivered fresh to your inbox. > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >