Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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

 
Bartender
Posts: 19358
86
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!