T5: Component Cheatsheet

2007-06-28 Thread David Peterson
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

T5: Problem returning a page from onActivate()

2007-06-25 Thread David Peterson
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

T5: XML declaration is missing from rendered page. Any workrounds?

2007-06-25 Thread David Peterson
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

Re: T5: Direct URL to Class Mappings are Inconvenient

2007-06-12 Thread David Peterson
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 "

T5: Direct URL to Class Mappings are Inconvenient

2007-06-12 Thread David Peterson
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