[ http://issues.apache.org/jira/browse/MYFACES-474?page=all ]
     
Sylvain Vieujot closed MYFACES-474:
-----------------------------------

    Resolution: Invalid

I think you forgot to configure the extensions filter.
The doc isn't visible on the website though, but it'll be restored soon.

Add the following snipset to your web.xml, it should fix the problem.

<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>

> JSF does not send javascript file to browser correctly
> ------------------------------------------------------
>
>          Key: MYFACES-474
>          URL: http://issues.apache.org/jira/browse/MYFACES-474
>      Project: MyFaces
>         Type: Bug
>     Versions: Nightly Build
>  Environment: Windows XP pro, Tomcat 5.5.9, MyFaces Build 2005-30-08
>     Reporter: Leandro de Oliveira
>     Priority: Blocker

>
> JSF send CSS files but not Javascript files I verified it using Firefox, IE 
> complains about it too.
> When I request a page with JSCookMenu or Calendar (renderAsPopup="true") 
> components I receive Javascript errors in Firefox like this: 
> jscalendarSetImageDirectory is not defined
> Arquivo-fonte: http://localhost:8080/test/test.jsf
> Line: 44
> jscalendarPopUpCalendar is not defined
> All other non-javascript components works well.
> Thanks in advance

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to