You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Jeremy F. Kassis" <jk...@jkassis.com> on 2007/06/17 15:12:22 UTC
T5 Block Rendering
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5 Block Rendering
Posted by "Jeremy F. Kassis" <jk...@jkassis.com>.
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 <jk...@jkassis.com> 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: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
> --
> 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5 Block Rendering
Posted by Howard Lewis Ship <hl...@gmail.com>.
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 <jk...@jkassis.com> 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org