[JBoss JIRA] (RF-13323) FileUploadEvent listener reset the list value with Viewscope
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-13323?page=com.atlassian.jira.plugin.s... ]
Brian Leathem reassigned RF-13323:
----------------------------------
Assignee: Jiří Štefek (was: Brian Leathem)
Just to be sure, can you try with a standalone sample?
> 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-SessionScoped.png, RF-13323-ViewScoped.png
>
>
> 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
12 years, 4 months
[JBoss JIRA] (RF-13341) Charts: implement AjaxProps
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-13341?page=com.atlassian.jira.plugin.s... ]
Brian Leathem commented on RF-13341:
------------------------------------
[AjaxProps|https://github.com/richfaces/richfaces/blob/master/framework/sr...] defines the attributes:
* execute
* render
* limitRender
* status
* data
So by implementing this interface, users would be able to initiate an ajax execute/render from the chart component tag. This would be instead of nesting the AJAX behaviour in the chart component to achieve the same results.
IMO nesting the ajax behaviour provides a nice encapsulation of the AJAX attributes, and I can't see a strong use case for adding this functionality directly into the chart component.
[~lukindo] do you have any use cases in mind?
> Charts: implement AjaxProps
> ---------------------------
>
> Key: RF-13341
> URL: https://issues.jboss.org/browse/RF-13341
> Project: RichFaces
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: component-output
> Reporter: Lukáš Macko
> Priority: Minor
>
> I think AbstractChart should implements AjaxProps since it uses server-side listeners.
--
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
12 years, 4 months