[jboss-cvs] jboss-seam/src/mail/org/jboss/seam/mail/ui ...
Gavin King
gavin.king at jboss.com
Thu Jun 21 00:07:14 EDT 2007
User: gavin
Date: 07/06/21 00:07:14
Modified: src/mail/org/jboss/seam/mail/ui UIAttachment.java
Log:
yay, seam finally not dependent upon JSF jar :)
Revision Changes Path
1.8 +2 -2 jboss-seam/src/mail/org/jboss/seam/mail/ui/UIAttachment.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: UIAttachment.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/mail/org/jboss/seam/mail/ui/UIAttachment.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- UIAttachment.java 19 Jun 2007 21:57:49 -0000 1.7
+++ UIAttachment.java 21 Jun 2007 04:07:13 -0000 1.8
@@ -21,7 +21,7 @@
import org.jboss.seam.pdf.DocumentData;
import org.jboss.seam.pdf.ui.UIDocument;
import org.jboss.seam.ui.util.JSF;
-import org.jboss.seam.util.Resources;
+import org.jboss.seam.util.FacesResources;
public class UIAttachment extends MailComponent implements ValueHolder
{
@@ -86,7 +86,7 @@
else if (getValue() instanceof String)
{
String string = (String) getValue();
- ds = new URLDataSource(Resources.getResource(string));
+ ds = new URLDataSource( FacesResources.getResource( string, context.getExternalContext() ) );
}
else if (getValue() instanceof InputStream)
{
More information about the jboss-cvs-commits
mailing list