-
15. Re: email templates
heiko.braun Feb 13, 2009 6:00 AM (in response to tom.baeyens)Yes, for Seam it makes sense to leverage what's there. But in our case it's doesn't seem appropriate. jBPM is intended to be embeddable. Hence we shouldn't pull in large dependencies for simple things.
-
16. Re: email templates
kukeltje Feb 13, 2009 10:00 AM (in response to tom.baeyens)To sum up the real situation
- It is not a real hack, since it is mostly what seam also does in their mock
- It works OUTSIDE an appserver, so standalone (that was the whole idea of the bootstrapping)
- A large use base of jBPM comes from seam users
- There is a templating mechanisme for email within JBoss, don't let JBoss become a second Apache Foundation (having a second workflow solution is already weird)
- Seam is not needed at all (yes there is some code duplication then, but if a seam mail subproject is created with some patches I have in mind, then probably one small jar is needed from seam
- No need to learn 101 things (as Pete states)
- the JBoss Tools html designer can be leveraged to design the mail in a wysiwyg way
- Using it is as simple asStandaloneFacelets sf = StandaloneFacelets.init(); Facelet f = sf.getFacelet("/myTemplate.xhtml"); Stringwriter sw = new StringWriter(); f.apply(ctx, sw);
Or whatever API is interesting..... Clearly much more complex than using velocity
Take whatever road you guys want... I need this anyway. -
17. Re: email templates
tom.baeyens Feb 13, 2009 10:09 AM (in response to tom.baeyens)Just thought of this:
Freemarker and velocity both seem to be supporting JSR223 : https://scripting.dev.java.net/
So they will actually fit right inside the scripting support that we already have and that binds variable to the process execution context. -
18. Re: email templates
tom.baeyens Feb 13, 2009 10:09 AM (in response to tom.baeyens)anyone got an idea about freemarker vs velocity ?
-
19. Re: email templates
koen.aers Feb 13, 2009 10:13 AM (in response to tom.baeyens)Max Andersen blogged about it: http://blog.hibernate.org/Bloggers/Everyone/Year/2006/Month/02/Day/03
Cheers,
Koen -
20. Re: email templates
kukeltje Feb 14, 2009 4:08 PM (in response to tom.baeyens)and there is a freemarker editor in JBoss Tools isn't there?
-
21. Re: email templates
ivanlatysh Apr 3, 2009 2:12 PM (in response to tom.baeyens)Have a look at http://code.google.com/p/saxon-extensions/wiki/EmailEmitter.
Templates is much easier to use than velocity and well understood by designers. -
22. Re: email templates
ivanlatysh Apr 3, 2009 2:16 PM (in response to tom.baeyens)Just to clear a few things.
Velocity or freemarker will template the message body, when Email Emitter externalize message generation, and you can customize any part of the message, headers, body, sender, etc.
And email template can be tested standalone by a designer outside of the server.