Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Primefaces in-cell editing not working with viewscoped managed beans  RSS feed

 
Akhil Moorthy
Greenhorn
Posts: 2
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an in-cell editable data table with a viewscoped managed bean.I found that the control never goes to the ajax event method onCellEdit when the scope of the bean is @Viewscoped but it works when the scope is changed to request scope.Can you please help me out how to get this feature work with viewscope.Below is my code snippet

xhtml snippet



Viewscoped managed bean

 
Tim Holloway
Bartender
Posts: 18661
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's odd. Usually it's Request scope that scrambles everything. What do the PrimeFaces docs say about setting stuff like that up?

If they really want Request scope - meaning essentially that the function is going to be stateless - then your best bet is probably to create a separate managed bean to contain that function instead of having it interfere with your primary (stateful) backing bean.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!