You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2016/08/17 14:04:16 UTC
svn commit: r1756637 - in /myfaces/tobago/trunk/tobago-example:
tobago-example-blank/src/main/webapp/WEB-INF/
tobago-example-demo/src/main/webapp/WEB-INF/
tobago-example-demo/src/main/webapp/content/20-component/100-upload/
tobago-example-portlet/src/m...
Author: lofwyr
Date: Wed Aug 17 14:04:15 2016
New Revision: 1756637
URL: http://svn.apache.org/viewvc?rev=1756637&view=rev
Log:
TOBAGO-1580: Multifile-Upload Component
* Setting some configuration values
(Websphere WAS doesn't runs without it)
Modified:
myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main/webapp/WEB-INF/web.xml
myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/WEB-INF/web.xml
myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/100-upload/upload.xhtml
myfaces/tobago/trunk/tobago-example/tobago-example-portlet/src/main/webapp/WEB-INF/web.xml
myfaces/tobago/trunk/tobago-example/tobago-example-security/src/main/webapp/WEB-INF/web.xml
myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/WEB-INF/web.xml
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main/webapp/WEB-INF/web.xml?rev=1756637&r1=1756636&r2=1756637&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main/webapp/WEB-INF/web.xml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-blank/src/main/webapp/WEB-INF/web.xml Wed Aug 17 14:04:15 2016
@@ -31,7 +31,10 @@
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>3</load-on-startup>
<!-- This is needed, for file upload e.g. <tc:file> with JSF 2.0 or 2.1, JSF 2.2 doesn't need it. -->
- <multipart-config/>
+ <multipart-config>
+ <max-request-size>20000000</max-request-size>
+ <max-file-size>1000000</max-file-size>
+ </multipart-config>
</servlet>
<servlet>
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/WEB-INF/web.xml?rev=1756637&r1=1756636&r2=1756637&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/WEB-INF/web.xml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/WEB-INF/web.xml Wed Aug 17 14:04:15 2016
@@ -121,7 +121,10 @@
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>3</load-on-startup>
<!-- This is needed, for file upload e.g. <tc:file> with JSF 2.0 or 2.1, JSF 2.2 doesn't need it. -->
- <multipart-config/>
+ <multipart-config>
+ <max-request-size>20000000</max-request-size>
+ <max-file-size>1000000</max-file-size>
+ </multipart-config>
</servlet>
<servlet-mapping>
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/100-upload/upload.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/100-upload/upload.xhtml?rev=1756637&r1=1756636&r2=1756637&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/100-upload/upload.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/100-upload/upload.xhtml Wed Aug 17 14:04:15 2016
@@ -29,9 +29,9 @@
FacesServlet in the <code>web.xml</code> file. Since JSF 2.2 this is not required.</p>
<p>Here you can configure some more general information.</p>
<pre><code class="language-markup"><multipart-config>
- <location>/tmp</location>
<max-file-size>20848820</max-file-size>
<max-request-size>418018841</max-request-size>
+ <location>/tmp</location>
<file-size-threshold>1048576</file-size-threshold>
</multipart-config></code></pre>
<p>If using Servlet API 3.1 you may call <code>part.getSubmittedFileName()</code>, for 3.0 you may use the Utility
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-portlet/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-portlet/src/main/webapp/WEB-INF/web.xml?rev=1756637&r1=1756636&r2=1756637&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-portlet/src/main/webapp/WEB-INF/web.xml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-portlet/src/main/webapp/WEB-INF/web.xml Wed Aug 17 14:04:15 2016
@@ -27,7 +27,10 @@
<servlet-name>FacesServlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<!-- This is needed, for file upload e.g. <tc:file> with JSF 2.0 or 2.1, JSF 2.2 doesn't need it. -->
- <multipart-config/>
+ <multipart-config>
+ <max-request-size>20000000</max-request-size>
+ <max-file-size>1000000</max-file-size>
+ </multipart-config>
</servlet>
<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-security/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-security/src/main/webapp/WEB-INF/web.xml?rev=1756637&r1=1756636&r2=1756637&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-security/src/main/webapp/WEB-INF/web.xml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-security/src/main/webapp/WEB-INF/web.xml Wed Aug 17 14:04:15 2016
@@ -32,7 +32,10 @@
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<!-- This is needed, for file upload e.g. <tc:file> with JSF 2.0 or 2.1, JSF 2.2 doesn't need it. -->
- <multipart-config/>
+ <multipart-config>
+ <max-request-size>20000000</max-request-size>
+ <max-file-size>1000000</max-file-size>
+ </multipart-config>
</servlet>
<servlet>
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/WEB-INF/web.xml?rev=1756637&r1=1756636&r2=1756637&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/WEB-INF/web.xml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/WEB-INF/web.xml Wed Aug 17 14:04:15 2016
@@ -66,7 +66,10 @@
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>3</load-on-startup>
<!-- This is needed, for file upload e.g. <tc:file> with JSF 2.0 or 2.1, JSF 2.2 doesn't need it. -->
- <multipart-config/>
+ <multipart-config>
+ <max-request-size>20000000</max-request-size>
+ <max-file-size>1000000</max-file-size>
+ </multipart-config>
</servlet>
<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>