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.
Describe the bug
If you refresh/edit a page you can get another entity
To Reproduce
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.