Ben
Ben

Reputation: 10288

Dealing with jsf session and browser refreshes

I'm writing an application in JSF 1.2 that has a session in a backing bean. The biggest stability issue happens when the user refreshes the page (by pressing F5) or uses the backward arrow in the browser to go back.

I would like some 'smart' (knowledgeable) way to overcome this.

The most common exception I get is that after a refresh, the user will try to continue using the application and would get a:

java.lang.IllegalStateException - duplicate Id for a component

in the browser.

Thanks!

Upvotes: 1

Views: 630

Answers (2)

Shervin Asgari
Shervin Asgari

Reputation: 24499

If you want a smart (knowledgeable) way to overcome this, add seam to your jsf application. They have solved the backbutton problems in JSF

Upvotes: 0

BalusC
BalusC

Reputation: 1108632

Don't bind physically different components by binding to one and same bean property.

Upvotes: 2

Related Questions