Re: Rendering a page without a .tml template?

2022-03-01 Thread Jonathan Meijer
Wonderful, works perfectly, thanks! Jonathan On Tue, Mar 1, 2022 at 1:36 PM Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, Mar 1, 2022 at 1:44 AM Jonathan Meijer > wrote: > > > Hi, > > > > Hello! > > > > In my tapestry app, in some cases, I want the HTML to be entirely >

Re: Rendering a page without a .tml template?

2022-03-01 Thread Thiago H. de Paula Figueiredo
On Tue, Mar 1, 2022 at 1:44 AM Jonathan Meijer wrote: > Hi, > Hello! > In my tapestry app, in some cases, I want the HTML to be entirely generated > without Tapestry's intervention. > As Volker mentioned, your page should have an onActivate() method that returns a StreamResponse (maybe a

Re: Rendering a page without a .tml template?

2022-03-01 Thread Volker Lamp
Hello Jonathan, A page's onActivate() page can return something, for example, a org.apache.tapestry5.StreamResponse or a java.net.URL. (see https://tapestry.apache.org/page-navigation.html#PageNavigation-ComponentEventRequests for more). That way, you could have a page class that serves a static

Rendering a page without a .tml template?

2022-02-28 Thread Jonathan Meijer
Hi, In my tapestry app, in some cases, I want the HTML to be entirely generated without Tapestry's intervention. For example, hypothetically, I have MyPage.java but a missing or empty MyPage.tml whose content does not matter. Ideally, MyPage.java would somehow conjure up the contents and my