[richfaces-issues] [JBoss JIRA] (RF-13323) FileUploadEvent listener reset the list value with Viewscope

Jiří Štefek (JIRA) jira-events at lists.jboss.org
Mon Nov 18 05:37:06 EST 2013


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

Jiří Štefek commented on RF-13323:
----------------------------------

[~wish79], tried this:
- vanilla JBoss AS 7.1.1.Final: impl: _jsf-impl-2.1.7-jbossorg-2_ and apis: _jboss-jsf-api_2.1_spec-2.0.1.Final_ , works.
- JBoss AS 7.1.1.Final with updated impl to: _jsf-impl-2.1.9-jbossorg-1_ , works.
- JBoss AS 7.1.1.Final with updated impl to: _jsf-impl-2.1.9-jbossorg-1_ + updated apis to:  _jboss-jsf-api_2.1_spec-2.0.9.Final_ , works.

What apis/impls are you using? Do you replace them as in this [comment|http://stackoverflow.com/a/11495699]? Or are you using the Oracle ones?

System? JDK? 64bit?
                
> FileUploadEvent listener reset the list value with Viewscope
> ------------------------------------------------------------
>
>                 Key: RF-13323
>                 URL: https://issues.jboss.org/browse/RF-13323
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-input
>    Affects Versions: 4.3.4
>         Environment: Jboss 7.1
> Richfaces 4.3.4
> JSF 2.1.9
>  
>            Reporter: Mohammad Weshah
>            Assignee: Jiří Štefek
>              Labels: rich:fileUpload
>         Attachments: RF-13323-2.zip, RF-13323-SessionScoped.png, RF-13323-ViewScoped.png, RF-13323.zip, TestRichFacesWebProject.rar, TestRichFacesWebProject.war
>
>
> Hello All,
> i make an example of upload file from richfaces showcase it is working successfully , but i notice if i changed the backing bean to viewscope the files list inside the FileUploadEvent listener will be rest every time that i upload new file , the code as follow :
>  
> {code}
> protected List<UploadedImage> files = new ArrayList<UploadedImage>();  
>   
> public void FileUploadlistener(FileUploadEvent event) throws Exception {  
>         UploadedFile item = event.getUploadedFile();  
>         UploadedImage file = new UploadedImage();  
>         file.setLength(item.getData().length);  
>         file.setName(item.getName());  
>         file.setData(item.getData());  
>          
>         files.add(file);  
>       }  
> {code}
>  
> but when i changed the scope to session the files still contain the old files, is it mandatory to the backing be session or there is something wrong ?
>  
> Regards
> Wish79

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the richfaces-issues mailing list