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
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 {
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) {
>
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
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