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&Responses
for more). That way, you could have a page class that serves a static file.
(I understood serving the static file by just putting it into
src/main/webapp is not the way to go as you need that page class for
something).

I was trying to imagine why you would not want a page to generate output.
Perhaps putting that logic into an event handler is a better way to go?

Cheers,

Volker


Am Di., 1. März 2022 um 05:44 Uhr schrieb Jonathan Meijer <
jonny.mei...@gmail.com>:

> 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 HTML would not be touched by
> bootstrap (or however it's done).  I tried multiple things, including
> trying to override the rendering steps, but no matter what I do, Tapestry
> either complains there's no content (even though there is), or it adds the
> <html><head> and all the stuff I really don't need.
>
> Any idea what I should do?
>
> Jonathan
>

Reply via email to