[jboss-user] [JBoss Seam] - Feedback request: seam-mail attachments

petemuir do-not-reply at jboss.com
Fri Feb 2 17:13:18 EST 2007

I'm adding support for attachments to seam mail, and would like to get some feedback on ways to specify the file to attach.  So far I've got the ability to do:

<m:attachment value="/path/to/foo.bar" /> where the foo.bar is accessible by the classloader for your app.

<m:attachment value="#{foo.bar}" /> where the object referenced by #{foo.bar} could be a java.io.File or java.net.URL

<m:attachment value="#{foo.bar}" contentType="application/pdf" /> where the object referenced by #{foo.bar} could be a byte[] or a InputStream

Anything else that should be supported?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010263#4010263

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010263

More information about the jboss-user mailing list