You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Martin DeMello <ma...@yahoo.com> on 2004/01/03 17:49:40 UTC
Block in the page spec
How do I insert a literal block into the page spec? The following didn't work,
but it's the general idea:
<component id="postColumns" type="Block">
<static-binding name="block">
<td><span jwcid="editRow">Update</span></td>
<td><span jwcid="deleteRow">Delete</span></td>
</static-binding>
</component>
martin
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: Block in the page spec
Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
The HTML goes in the HTML template, i.e.:
<span jwcid="postColumns@Block">
<td><span jwcid="editRow"> ...
...
</span>
Then you can use:
<span jwcid="@RenderBlock" block="ognl:compnents.postColumns"/>
To render the body of the Block.
--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry
http://jakarta.apache.org/commons/sandbox/hivemind/
http://javatapestry.blogspot.com
> -----Original Message-----
> From: Martin DeMello [mailto:martindemello@yahoo.com]
> Sent: Saturday, January 03, 2004 11:50 AM
> To: Tapestry users
> Subject: Block in the page spec
>
>
> How do I insert a literal block into the page spec? The
> following didn't work,
> but it's the general idea:
>
> <component id="postColumns" type="Block">
> <static-binding name="block">
> <td><span jwcid="editRow">Update</span></td>
> <td><span jwcid="deleteRow">Delete</span></td>
> </static-binding>
> </component>
>
> martin
>
>
> __________________________________
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing.
> http://photos.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org