MyEclipse: [Tip] MyFaces Extensions support working

drbugs - Oct 04, 2005 - 06:27 PM
Post subject: [Tip] MyFaces Extensions support working
Hi,
Tx to Eugene, I'm got Myfaces 1.1.0 working fine. I found my original problem that made do the upgrade. The problem exist with the tree2 (and others apparently) component. It requires an addition to the web.xml file to be added for the clientside javascript to work. Here is the snippet:
Code:
<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.

Randy
support-rkalla - Oct 04, 2005 - 06:47 PM
Post subject:
Randy,
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.
drbugs - Oct 04, 2005 - 06:57 PM
Post subject:
De nada. Hope it helps others.

L8R!
Randy
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits