JSF beans session scope with view tab

We have the following problem ...

Application Environment:

JSF, Richfaces, a4J

Consider the following scenario:

  • The user is registered in the system
  • The user goes to a new page consisting of the a4j form containing the a4j components, the user fills out the form, but does not submit.
  • The user opens a new tab and opens the same URL and fills the new form with new data.
  • The user returns to his first tab and sends the information (Note: all beans are defined as a session area)

Result:

The information presented is information from the second tab, but presented from the first tab, which is expected until the beans are defined as a session area.

Problem:

( : , bean ).

:

bean Ajax , .

?

-

+3
2

-.

, , , , .

- JSF conversation scope beans , .

Seam ( JBoss/Redhat), .

+2

bean ?

ajax-, bean a4j: keepAlive.

a4j: keepAlive bean, bean , ajax. , bean.

0

Source: https://habr.com/ru/post/1702631/


All Articles