 |
|
 |
 |
|
 |
 |
| Author |
Message |
|
|
Post subject: [Tip] MyFaces Extensions support working
Posted: Oct 04, 2005 - 06:27 PM
|
|
Registered Member


Joined: Apr 22, 2005
Posts: 62
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Oct 04, 2005 - 06:47 PM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23855
|
|
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. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Oct 04, 2005 - 06:57 PM
|
|
Registered Member


Joined: Apr 22, 2005
Posts: 62
|
|
De nada. Hope it helps others.
L8R!
Randy |
|
|
| |
|
|
|
 |
|
|
| |
|
|
 |
|
 |
|
|
|
 |