Skip to content

Refresh display another entity #18

Description

@ritonglue

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions