Sure, it is possible, but it is tedious and verbose compared to using Freemarker or another scripting language. Using Wicket for this will only add more code and complexity to the process, and it's not like you need component based control of the markup you are creating, so Wicket is simply overkill for this task. Wicket isn't a golden hammer, even though it is great at what it does/is meant for :)

Remember, you have to create both the java-side and the html-side for every variable you put in your markup, instead of just outputting ${var} where you need it :)

-- Edvin

Adrian Wiesmann skrev:
Why not? I was remembering that Wicket can manage any markup, not just
HTML . .

Am I missing something ?

Not sure. If you do, so do I :)

I have written a renderer which takes an XML containing some UI
description and either generates Swing, HTML (Wicket), PDF (FOP) or CSV
from the same UI description (but from different templates).

Although you can ask Wicket to generate the PDF, there is no direct link
between FOP and Wicket. Wicket only calls my renderer and forwards the
generated file to the user via HTTP.

The problem with having Wicket generate your FOP files will be that you
will have to write all UI elements on your own because there are no
classes/objects you can use.

hth,
Adrian

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


--
Med vennlig hilsen

Edvin Syse
Programutvikler

www.sysedata.no / [EMAIL PROTECTED]
Tlf: 333 49700  / Faks: 333 49701
Adresse: Møllegaten 12, 3111 Tønsberg

Syse Data AS -Profesjonelle IT-tjenester

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

Reply via email to