I have an xhtml same as the showcase example but in the final level I try and upload a file. The issue is that when you upload the file, the fileUploadLister needs to be executed so that you can get the file name from the event and assign it to the Backing Bean. Once all this is done, when you press okay with action using the context var object, the file name has been overwritten since the backing bean has been refreshed.
While debugging this I found that the backing been is refreshed for every call to the server even though it is set at view scoped. I read in a blog that it is a bug in the extension when you use dataTable which uses for-each loop.
Is there a solution to this issue if it is one.
Someone please help.
Thanks
MasterDetail with Datatable as per showcase
The value need to preserved for viewscoped bean until unless view has been changed or redirected.Can you please create simple maven project to replicate the issue.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
-
- Posts: 4
- Joined: 25 May 2016, 19:03
- Contact:
The value need to preserved for viewscoped bean until unless view has been changed or redirected.Can you please create simple maven project to replicate the issue.
http://remcuatot.com.vn/category/rem-cuon/
http://remcuatot.com.vn/category/rem-vai/
http://remcuatot.com.vn/category/rem-van-phong/
http://remcuatot.com.vn/
http://remcuatot.com.vn/category/rem-cuon/
http://remcuatot.com.vn/category/rem-vai/
http://remcuatot.com.vn/category/rem-van-phong/
http://remcuatot.com.vn/
-
- Information
-
Who is online
Users browsing this forum: No registered users and 4 guests