[ 
https://jira.jboss.org/jira/browse/RF-5166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12442997#action_12442997
 ] 

Nick Belaevski commented on RF-5166:
------------------------------------

Filter mapping for ajax4jsf filter should be the first one in web.xml:

        <filter-mapping>
                <filter-name>ajax4jsf</filter-name>
                <servlet-name>Faces Servlet</servlet-name>
                <dispatcher>FORWARD</dispatcher>
                <dispatcher>REQUEST</dispatcher>
                <dispatcher>INCLUDE</dispatcher>
        </filter-mapping>

This should be removed as it shadows mapping for ajax4jsf filter:
        <filter-mapping>
                <filter-name>extensionsFilter</filter-name>
                <url-pattern>/*</url-pattern>
        </filter-mapping>



> fileUpload: fileUploadListener isn't call under myfaces.
> --------------------------------------------------------
>
>                 Key: RF-5166
>                 URL: https://jira.jboss.org/jira/browse/RF-5166
>             Project: RichFaces
>          Issue Type: Bug
>          Components: planning_all
>    Affects Versions: 3.3.0
>         Environment: myfaces 1.2.5, IE6, IE7, FF 3.1.3, Safari 3.1, Opera 
> 9.62(3.3.0.BETA1)
>            Reporter: Mikhail Vitenkov
>            Assignee: Nick Belaevski
>             Fix For: 3.3.0
>
>   Original Estimate: 2 hours
>  Remaining Estimate: 2 hours
>
> #1. Set org.apache.myfaces.CHECK_EXTENSIONS_FILTER context parameter to 
> "false" in web.xml;
> #2. Set fileUploadListener="#{fileUpload.fileUploadListener}", where listener 
> defined following way:
> public void fileUploadListener(UploadEvent event) throws Exception{
>                UploadItem upload = event.getUploadItem();
>               if (upload.isTempFile()) {
>               File file = upload.getFile();
>               System.out.println("FileUpload.fileUploadListener()");
>           } else {
>               ByteArrayOutputStream b = new ByteArrayOutputStream();
>               b.write(upload.getData());
>           }
>               System.out.println("FileUpload.fileUploadListener()");
>       }
> #3. Navigate to page with component & try to upload any valid file(satisfied 
> with maxFilesQuantity, size restriction and so on).
> #4. Verify "FileUpload.fileUploadListener()" message in console.
> Actual behavior:
> fileUploadListener was not fired.

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

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to