[JBoss JIRA] (RF-13322) Tree: selectionchange event fired twice inside r:region
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-13322?page=com.atlassian.jira.plugin.s... ]
Brian Leathem updated RF-13322:
-------------------------------
Fix Version/s: 5-Tracking
> Tree: selectionchange event fired twice inside r:region
> -------------------------------------------------------
>
> Key: RF-13322
> URL: https://issues.jboss.org/browse/RF-13322
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-tree
> Affects Versions: 4.3.4, 5.0.0.Alpha1
> Environment: RichFaces 4.3.4.Final-redhat-1
> Metamer 4.3.5-SNAPSHOT
> JBoss Application Server: Weld Integration 7.2.1.Final-redhat-10
> JBoss AS 7.2.1.Final-redhat-10
> Java(TM) SE Runtime Environment 1.7.0_04-b20 @ Linux
> Chrome 30.0.1599.114 @ Linux x86_64
> Reporter: Pavol Pitonak
> Fix For: 5-Tracking
>
>
> # deploy Metamer and open http://localhost:8080/metamer/faces/components/richTree/simpleSwingTreeNo...
> # set attribute onselectionchange=alert('changed')
> # select first node in tree ("Europe")
> result:
> * alert is displayed twice
> * you can also run Metamer tests
> {code}
> mvn clean verify -P jbossas-managed-7-1 -Dtest=TestTreeAttributes#testOnselectionchange -Dtemplates=a4jRegion
> {code}
> * all other templates work fine
--
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, 5 months
[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 updated RF-13323:
-------------------------------
Description:
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
was:
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 :
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);
}
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
> 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
> Labels: rich:fileUpload
>
> 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, 5 months
[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: Pavol Pitonak
QA would you please verify whether the fileupload component works with a ViewScoped backing bean?
> 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: Pavol Pitonak
> Labels: rich:fileUpload
>
> 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, 5 months