I put together a simple cheatsheet for the Tapestry 5 component parameters
and the rendering cycle. I've been finding it useful, so I thought I might
as well stick it on the web in case you find it useful too...
http://www.davidpeterson.co.uk/files/tapestry5/t5-component-cheatsheet.pdf
David
Can you help me? What I'm trying to do is redirect to another page, if my
page has not been given any context.
Something like this:
Object onActivate(String context) {
if (context == null) {
return _otherPage;
}
return null;
}
Unfortunately that method
I'm using the latest 5.0.5-SNAPSHOT built directly from the Subversion
repository.
I have a simple page class "Atom" that renders an atom feed (using the @Meta
to change the response content type). It's almost perfect, except that the
output is missing the XML declaration at the top of the respon
assname (and
back) be made pluggable or more configurable.
David
The current rules allow for this:
pages.view.ViewArticle is mapped to "view/article" (not
"view/viewarticle").
This is very useful, since you'll likely add other options: "add/" or
"
I'm finding that I often want my pages to have the same names as classes in
my model.
For example, I have an Article class in my model and I want the article
viewer URL to be "/article" (with a context specifying the article
reference). Although this is possible by using fully-qualified class nam