Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh display another entity #18

Open
ritonglue opened this issue Oct 23, 2024 · 0 comments
Open

Refresh display another entity #18

ritonglue opened this issue Oct 23, 2024 · 0 comments

Comments

@ritonglue
Copy link

Describe the bug
If you refresh/edit a page you can get another entity

To Reproduce

  • Create two pet types : dog and cat
  • In the list ctrl + clic to open cat in a new window
  • In the list ctrl + clic to open dog in a new window
  • Go to the window "cat"
  • Hit "Edit Pet Type" -> it's the dog pet type that is displayed !
  • Instead of editing the Pet Type, you can also refresh the window : if you are not on the last opened type, the type changes.

Expected behavior
If you edit or refresh an entity, the window shall not change the entity.

This behaviour happens because the managed beans are sessionScoped : if the user opens multiple windows he gets confused if he refreshes or edit the window. The managed bean must be requestScoped or viewScoped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant