I'm having serious issue (maybe its more of an understanding issue?) where sessionScope just doesn't want to cooperate with me? Here is the thing:
- my website has alot of checboxes. when clicking one, ajax call is used to just store checbox info into sessionScope hashmap. This works.
- if you uncheck checkbox, ajax call is made again, this time, it removes the entry from sessionScrope hashmap. This works.
- checking and unchecking works as charm since i'm listing hashmap after every ajax call to see the debug info.
Well, after I refresh the site, it looks like as the page takes PREVIOUS sessionScope HashMap (meaning the one, before I refreshed the page). But, it doesn't end here. After 2nd refresh, it shows the correct result. After 3rd refresh, it shows the previous HashMap state and so it stays. :|
Am I missing something here? And as soon as I refresh, HashMap is now from previous state without writing anything to it, just reading it.
How is this possible?
Please help me out understand this thing because I have no idea what is going on...