myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bom...@apache.org
Subject svn commit: r512047 - in /myfaces/tobago/trunk/example: demo/src/main/java/org/apache/myfaces/tobago/example/demo/bestpractice/BestPracticeController.java pom.xml
Date Mon, 26 Feb 2007 22:34:27 GMT
Author: bommel
Date: Mon Feb 26 14:34:26 2007
New Revision: 512047

URL: http://svn.apache.org/viewvc?view=rev&rev=512047
Log:
some enhancements

Modified:
    myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/bestpractice/BestPracticeController.java
    myfaces/tobago/trunk/example/pom.xml

Modified: myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/bestpractice/BestPracticeController.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/bestpractice/BestPracticeController.java?view=diff&rev=512047&r1=512046&r2=512047
==============================================================================
--- myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/bestpractice/BestPracticeController.java
(original)
+++ myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/bestpractice/BestPracticeController.java
Mon Feb 26 14:34:26 2007
@@ -50,6 +50,9 @@
     InputStream inputStream = null;
     try {
       inputStream = facesContext.getExternalContext().getResourceAsStream("best-practice/sample.pdf");
+      if (inputStream == null) {
+        inputStream = facesContext.getExternalContext().getResourceAsStream("/best-practice/sample.pdf");
+      }
       HttpServletResponse response = (HttpServletResponse) facesContext.getExternalContext().getResponse();
       response.setContentType("application/pdf");
       if (outside) {

Modified: myfaces/tobago/trunk/example/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/pom.xml?view=diff&rev=512047&r1=512046&r2=512047
==============================================================================
--- myfaces/tobago/trunk/example/pom.xml (original)
+++ myfaces/tobago/trunk/example/pom.xml Mon Feb 26 14:34:26 2007
@@ -44,6 +44,7 @@
         <artifactId>maven-jetty-plugin</artifactId>
         <version>6.1.1</version>
         <configuration>
+          <scanIntervalSeconds>5</scanIntervalSeconds>
           <systemProperties>
             <systemProperty>
               <name>org.apache.commons.logging.Log</name>



Mime
View raw message