Re: t5: page class without tml file

2009-07-25 Thread Thiago H. de Paula Figueiredo
Em Sat, 25 Jul 2009 10:43:48 -0300, Angelo Chen escreveu: Hi, Hi! I have quite a number of page classes that simply returns a TextStreamResponse in onActivate, is there a way to omit the tml file? When you always return a StreamResponse in onActivate() or any other event handler metho

Re: t5: page class without tml file

2009-07-25 Thread Igor Drobiazko
Just put the content of your TextStreamResponse into writer.writeRaw() in the example I sent before and remove your template. On Sat, Jul 25, 2009 at 4:17 PM, Angelo Chen wrote: > > Hi, > > Looks like good news! now excuse my ignorance, how to use it? here is my > class: > > public class MyPage {

Re: t5: page class without tml file

2009-07-25 Thread Angelo Chen
Hi, Looks like good news! now excuse my ignorance, how to use it? here is my class: public class MyPage { TextStreamResponse onActivate(String params) { } } Igor Drobiazko wrote: > > Yep! > > public class PageWithoutTemplate { > >void beginRender(MarkupWriter writer) { >

Re: t5: page class without tml file

2009-07-25 Thread Igor Drobiazko
Yep! public class PageWithoutTemplate { void beginRender(MarkupWriter writer) { writer.element("html"); writer.defineNamespace( "http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";, "t"); writer.element("body"); writer.writeRaw("Hello, World

t5: page class without tml file

2009-07-25 Thread Angelo Chen
Hi, I have quite a number of page classes that simply returns a TextStreamResponse in onActivate, is there a way to omit the tml file? Thanks, Angelo -- View this message in context: http://www.nabble.com/t5%3A-page-class-without-tml-file-tp24658062p24658062.html Sent from the Tapestry - User