Return-Path: Delivered-To: apmail-tapestry-users-archive@www.apache.org Received: (qmail 8452 invoked from network); 3 Dec 2008 23:10:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Dec 2008 23:10:06 -0000 Received: (qmail 86538 invoked by uid 500); 3 Dec 2008 23:10:16 -0000 Delivered-To: apmail-tapestry-users-archive@tapestry.apache.org Received: (qmail 86532 invoked by uid 500); 3 Dec 2008 23:10:16 -0000 Mailing-List: contact users-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tapestry users" Delivered-To: mailing list users@tapestry.apache.org Delivered-To: moderator for users@tapestry.apache.org Received: (qmail 50813 invoked by uid 99); 3 Dec 2008 22:39:51 -0000 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Message-Id: <768C01F8-98F7-4940-A2C8-08BB7851B857@astina.ch> From: Thilo Tanner To: users@tapestry.apache.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: [T5]: RESTful "File" Extensions (Multiple Templates per Page) Date: Wed, 3 Dec 2008 23:38:30 +0100 X-Mailer: Apple Mail (2.929.2) X-Virus-Checked: Checked by ClamAV on apache.org Hi All, I have a question concerning T5 and RESTful URLs: We'd like to create RESTful URLs with virtual "file" extension like: /articles/1.html /articles/1.json /articles/1.pdf It would be perfect to have just one page class (e.g. pages/articles/ Edit.java) and several templates like: articles/Edit.tml or articles/Edit.html.tml articles/Edit.json.tml articles/Edit.pdf.tml and the possibility to define handlers for the different content types, so for example if the user wants to load 1.pdf the template Edit.pdf.tml gets executed (and creates for example a xsl-fo xml) and before deliviering to the browser a handler takes the xml and convert it with apache fop to PDF and streams the result to the browser. Is something like this possible with Tapestry 5? I'm quiet new to T5 but if someone can give me a hint where to start, I appreciate to write an extension and contribute it to the community. Thanks a lot for your help! Best, Thilo --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org For additional commands, e-mail: users-help@tapestry.apache.org