Alexander Zimmer wrote:
How can I use template functionality? The problem involved are:
1. I want to use the Velocity engine and capture its output in a 
String/ByteArray. The output will be a valid FO file.
2. I want to be able to use all (at least: some) pull tools Turbine provides 
for screen templates
I think that I've solved the other problems (how to do the streaming, how to 
convert into PDF, ...).
I try to dive into the VelocityOnlyLayout (as Peter Courcoux pointed out), but 
if you have additional clues for me, I would be very happy to hear from you!

You have TurbineVelocity at your disposal. TurbineVelocity.handleRequest(Context context, String template) is probably what you want. The service is used by Turbine itself so the Velocity engine used is completely configured and ready to use.

The service will provide you with a new context (TurbineVelocity.getContext(RunData data)) which is already pre-populated with all the pull tools you configured, but you can also pass it an existing, pre-populated context.

Don't forget to call TurbineVelocity.requestFinished() when you're done.


Bye, Thomas.

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

Reply via email to