ILYA
ILYA

Reputation: 495

JSF 'Tab' bean scope

I need create webapp with two pages and one backing bean for both pages. I tried @SessionScoped, but when I open other tab in a browser, I see the same data as in previous tab.

I tried to use MyFaces Orchestra, but backing bean is created on each AJAX request.

How to solve the problem?

Beforehand thankfull, Ilya

Upvotes: 1

Views: 268

Answers (1)

damiankolasa
damiankolasa

Reputation: 1500

In a web browser if you open a new tab it will pass along the same session related cookies thus will be opend in the same session context. You need to open a new winodow to get a new session.

Upvotes: -1

Related Questions