Re: Apache FOP and Wicket

2008-09-12 Thread Edvin Syse
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]



Apache FOP and Wicket

2008-09-11 Thread Paolo Di Tommaso
Dear all,

If I'm not wrong Wicket is able to manage any king of markup not just HTML.


So it would be possibile to use Wicket to generate an Apache FOP markup to
rendere a PDF file? Any suggestions?

Thank you,
-- Paolo


Re: Apache FOP and Wicket

2008-09-11 Thread Edvin Syse
I don't think Wicket is the right tool for that, try Freemarker instead. 
You can still serve up the file through Wicket though :)


-- Edvin

Paolo Di Tommaso skrev:

Dear all,

If I'm not wrong Wicket is able to manage any king of markup not just HTML.


So it would be possibile to use Wicket to generate an Apache FOP markup to
rendere a PDF file? Any suggestions?

Thank you,
-- Paolo

  


--
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]



Re: Apache FOP and Wicket

2008-09-11 Thread Paolo Di Tommaso
Why not? I was remembering that Wicket can manage any markup, not just HTML
. .

Am I missing something ?

Paolo

On Thu, Sep 11, 2008 at 3:03 PM, Edvin Syse [EMAIL PROTECTED] wrote:

 I don't think Wicket is the right tool for that, try Freemarker instead.
 You can still serve up the file through Wicket though :)

 -- Edvin

 Paolo Di Tommaso skrev:

  Dear all,

 If I'm not wrong Wicket is able to manage any king of markup not just
 HTML.


 So it would be possibile to use Wicket to generate an Apache FOP markup to
 rendere a PDF file? Any suggestions?

 Thank you,
 -- Paolo




 --
 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]




Re: Apache FOP and Wicket

2008-09-11 Thread Adrian Wiesmann
 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]