spring icon indicating copy to clipboard operation
spring copied to clipboard

Possibility of opening one view muliple times with its own beans

Open mrhnrk opened this issue 8 years ago • 1 comments

Greetings,

I want to open the SpringViews in a TabSheet as ViewDisplay. Each view will be opened in a separate new Tab. The problem is that the new view has the same bean as the first opened view.

Is it possible to open a view again that is already opened without destroying the old one?

E.g. I have opened HomeView on navigation state home with bean homeView. Now I want to open it again so it wants to open another tab with HomeView. This tab has to be related to navigationState home-2 and bean homeView2 as example. So it has its own bean and navigation state.

mrhnrk avatar Feb 09 '18 10:02 mrhnrk

The answer is yes. Just use UIScope in the bean.

TatuLund avatar Feb 07 '22 18:02 TatuLund