Thinking about html e-mails for our e-commerce site I thought about reusing jsf and other 3rd party libraries as a template engine to create the e-mails on our application server (Glassfish 3, EAR). Is it possible to manually run jsf with a local file and initialize the necessary bean to capture the html output to be saved in a String?