MasterDetail with Datatable as per showcase

Community Driven Extensions Project
Post Reply
preddy
Posts: 1
Joined: 30 Sep 2015, 06:51

08 Mar 2016, 00:01

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

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

20 Mar 2016, 20:15

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

everon25quanthanh
Posts: 4
Joined: 25 May 2016, 19:03
Contact:

25 May 2016, 19:14

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/

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests