Guys,

I'm using Wicket to create pdf content using Apache FOP. The idea is to have
a FopPage that extends the root wicket Page component and declares "fo" as
marketType. The FopPage parses FOP markup instead HTML markup.

I'm able to manage the fop to pdf binary conversion using a custom
PdfRequestTarget, but it requires to specify it explicitly, invoking
RequestCycle.get().setRequestTarget(new PdfRequestTarget(this)); every time.


So the question: is there a way to make a custom RequestTarget the default
to certain pages? Or exists a better strategy to override the default render
strategy to return a content different from HTML ?


Thank you,

-- Paolo

Reply via email to