Java – JSF – session scope beans shared by browsers on different machines
We have a search form where filters are bound to properties on managed beans (session scope) It is not a component binding, and its attribute binding is similar to < H: inputtext value = "#{searchbean. Filter}" / >
Committed data from different machines (different sessions) is becoming mixed You search for "John" and get "Mary" just because the person around you has just searched for "Mary" searchBean. The value of filter is to get the data submitted by him, not your data
I've searched a lot of things and didn't find a solution. It's just the same problem
Has anyone ever encountered this problem? Any leads?
thank you!
Solution
There may be two reasons for this:
>Beans are actually in application scope. > The property in question was declared static
To fix 1), just make sure it's session - wide To fix 2), just delete the illegal modifier