[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-823) Add capability to supply an InputStream to Renderer (for email rendering)
Gavin King (JIRA)
jira-events at lists.jboss.org
Mon Feb 12 09:52:30 EST 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-823?page=comments#action_12352854 ]
Gavin King commented on JBSEAM-823:
-----------------------------------
Oh, I mean a Reader. You want to stream the template, not the rendered result...
> Add capability to supply an InputStream to Renderer (for email rendering)
> -------------------------------------------------------------------------
>
> Key: JBSEAM-823
> URL: http://jira.jboss.com/jira/browse/JBSEAM-823
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: Mail
> Reporter: Bradley Smith
> Assigned To: Peter Muir
>
> I'm requesting the addition of a method on the Renderer component that takes an InputStream.
> Currently, Renderer only takes the String path to a facelets file:
> @In(create=true)
> private Renderer renderer;
>
> public void send() {
> try {
> renderer.render("/simple.xhtml");
> facesMessages.add("Email sent successfully");
> } catch (Exception e) {
> facesMessages.add("Email sending failed: " + e.getMessage());
> }
> }
> If possible, I would like to supply an InputStream so that I can store templates in the database, also allows me to upload new templates to a deployed application.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list