Howard you read my mind, ideally dynamic components would be great, but I ended up just defining several blocks and then delegating which one to show, small price to pay for the flat out RAD of T5.
-Jon -----Original Message----- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 30, 2007 7:51 AM To: Tapestry users Subject: Re: T5 I need to be able to dynamically render components Tapestry pages are static in structure: you don't just create components on the fly. This is necessary for Tapestry's view on scalability and clustering. What you can do is define th components you want and select which one renders at any give time. This is how the Grid and BeanEditForm components work, for example. On 5/29/07, Jonathan Glanz <[EMAIL PROTECTED]> wrote: > > All, below is a sample of what I'd like to be able to do, but I can't seem > to figure out a way to make it work > > > > <t:loop source="widgets" value="widget"> > > <div t:type="prop:viewElementType"/> > > </t:loop> > > > > Is there a way to do this or a binding that would do this? Basically I > need > a way to dynamically instantiate components at runtime. > > > > -thx, Jon > > -- 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]