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 <[email protected]>wrote:

>
> 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) {
> >       writer.element("html");
> >       writer.defineNamespace(
> >              "http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";,
> >              "t");
> >       writer.element("body");
> >       writer.writeRaw("Hello, World!");
> >       writer.end();
> >       writer.end();
> >    }
> > }
> >
> >
> > On Sat, Jul 25, 2009 at 3:43 PM, Angelo Chen
> > <[email protected]>wrote:
> >
> >>
> >> 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 mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
> >
> >
> > --
> > Best regards,
> >
> > Igor Drobiazko
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/t5%3A-page-class-without-tml-file-tp24658062p24658324.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Best regards,

Igor Drobiazko

Reply via email to