You don't have to do this from the pages. You can create your own
simple IRequestTargetUrlCodingStrategy that resolves to your request
target and mount the strategy.

-Matej

On Tue, Sep 23, 2008 at 12:45 PM, Paolo Di Tommaso
<[EMAIL PROTECTED]> wrote:
> 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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to