1

I have a manged bean where I use another managed bean:

@ManagedProperty(value="#{tableActions}") 
private TableActions table1;    

that works fine.

Now I need to use another instance of it:

@ManagedProperty(value="#{tableActions}") 
private TableActions table1;    

@ManagedProperty(value="#{tableActions}") 
private TableActions table2;    

However, now table2 is the same as table1. How can I create a separate instance?

matthias
  • 1,938
  • 23
  • 51

1 Answers1

2

Make it a @NoneScoped bean.

You only need to make sure you access it in view via #{yourParentBean.table1} and not via #{tableActions}.

See also:

Community
  • 1
  • 1
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555