There is no Shell or Body component in Tapestry 5, but the newer method actually makes a lot more sense. Doing common borders was kind of screwy in Tapestry 3.
In t5 the "Layout" component "pattern" is used. See the basic idea here at http://tapestry.apache.org/tapestry5/guide/layout.html.
Various methods can be used to add images and style sheets including just coding simple "link" and "img" XHtml tags for static assets. Relative tags are not recommended for maximum component flexibility.
You will need to put BOTH the "tml" file and "java" file for components in the folder for the "appname.components" package. Otherwise you'll get nothing.
So far this "improved" approach looks good.
Thursday, March 18, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment