hi michael,

great tutorial... had to figure out this myself :)

you can simplify the getLeftContent() method 
if you use the value attribute of the Parameter 
annotation:

@Parameter(value="block:left")
private Object left;

Object getLeftContent() {
   return left;
}

if no left parameter is passed to the layout
component it will use the default block.

g,
kris




Michael Courcy <[EMAIL PROTECTED]> 
22.01.2008 00:12
Bitte antworten an
"Tapestry users" <users@tapestry.apache.org>


An
Tapestry users <users@tapestry.apache.org>
Kopie

Thema
Layout component






Hi,

I propose a small tutorial to build a Layout component.
http://courcy-en.blogspot.com/2008/01/tapestry-5-create-layout-component.html


This one is a bit more sophisticated than the exemple given in the 
documentation, because you are able to override static content on case 
by case.


Your feedback are welcome and wanted.

-- 
Michael Courcy

http://courcy-en.blogspot.com
http://courcy.blogspot.com


Reply via email to