October 4, 2005 at 12:27 pm #238686
<filter> <filter-name>MyFacesExtensionsFilter</filter-name> <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class> <init-param> <param-name>maxFileSize</param-name> <param-value>20m</param-value> <description>Set the size limit for uploaded files. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB </description> </init-param> </filter> <filter-mapping> <filter-name>MyFacesExtensionsFilter</filter-name> <url-pattern>*.jsf</url-pattern> </filter-mapping> <filter-mapping> <filter-name>MyFacesExtensionsFilter</filter-name> <url-pattern>/faces/*</url-pattern> </filter-mapping>
The help page is here http://myfaces.apache.org/tomahawk/extensionsFilter.html
Would it be possible to have an option to have this added to the web.xml automagically, maybe as a myfaces config option? Since I’m learning myfaces, I wasted an insane amount of time trying to figure out why my tree2 menu was not expandble. adding the snippet above (with a url-pattern of *.faces) fixed it.
Want to say thanx again for such awesome support.
RandyOctober 4, 2005 at 12:47 pm #238689
First let me thank you for posting this, I am going to make it sticky for others, also this request is already in our pipeline, another user a few months ago had the exact same problem and requested the same thing, sorry for the delay.October 4, 2005 at 12:57 pm #238695
De nada. Hope it helps others.