Demoiselle-jsf-Parent - scope/session problem

Asked

Viewed 37 times

2

I have a problem with an application developed with Demoiselle and I believe it is related to the scope of Managedbean.

I did the test in the example application (Bookmark) and the same problem occurred (I only created the project based on Demoiselle-jsf-Parent and ran).

When I open the same record (edit screen) in two browser windows (same browser and same session) and go back to the first tab by clicking save it seems that the system loses the reference to MB creating a new instance instead of updating.

I will describe how to simulate the problem so that someone can help me understand it:

  1. Run the Bookmark application;
  2. Go to the listing;
  3. Copy the URL link and paste into a new tab.
  4. Go back to the first tab and access a record;
  5. Go to the second tab and access the same record;
  6. Go back to the first tab and click save (here the error occurs, even when the update occurs the delete button is removed leaving only the save, if you click save the record is duplicated);

What is the best way to solve this problem?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.