Interesting... Although my initial post was partially in error, the t:parameter solution looks awfully elegant. I'll give it a try! Many thanks howard! :-)
Howard Lewis Ship wrote: > > It's a little confusing and although what it does now is correct, I may > fix it. > > <div t:type="EmptyFrame" t:id="myFrame" centerBlock="block:centerBlock"> > <t:block id="centerBlock">Something</t:block> > </div> > > > t:id is just for components. For blocks, a simple id will sufffice, > and is all that's accepted. It should be generating a parse error for > your syntax. > > Further for what you are trying to do, I've tried to make it easy: > > <div t:type="EmptyFrame" t:id="myFrame"> > <t:parameter name="centerBlock"> Something </t:parameter> > </div> > > <t:parameter> is used to define a Block and bind it to a parameter all > in one go. > > On 6/17/07, Jeremy F. Kassis <[EMAIL PROTECTED]> wrote: >> >> This works: >> <div t:type="EmptyFrame" t:id="myFrame" >> centerBlock="block:centerBlock"></div> >> <t:block t:id="centerBlock">Something</t:block> >> >> >> But T5 complains that the component doesn't have a Block with >> id="centerBlock" in this case: >> <div t:type="EmptyFrame" t:id="myFrame" centerBlock="block:centerBlock"> >> <t:block t:id="centerBlock">Something</t:block> >> </div> >> >> And has the same complaint for this: >> <t:block t:id="centerBlock">Something</t:block> >> <div t:type="EmptyFrame" t:id="myFrame" >> centerBlock="block:centerBlock"></div> >> >> >> Coming from Tap4 land, this seems a little strange. >> -- >> View this message in context: >> http://www.nabble.com/T5-Block-Rendering-tf3935992.html#a11163113 >> Sent from the Tapestry - User mailing list archive at Nabble.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] > > > -- View this message in context: http://www.nabble.com/T5-Block-Rendering-tf3935992.html#a11204658 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
