TheCoder4eu / BootsFaces-OSP

BootsFaces - Open Source Project
Apache License 2.0
247 stars 102 forks source link

Fix #1117 - Navbar causes session creation in a stateless f:view #1118

Closed exabrial closed 4 years ago

exabrial commented 4 years ago

Navbar causes session creation. Use a private static concurrent map instead of the server session

exabrial commented 4 years ago

The only downside to this approach is that if the lifecycle is stopped between the static call to addResource and the system event firing, you'll have a key stuck in the map, resulting in a memory leak. This may or may not be possible under the JSF lifecycle, I actually don't know enough about it to make a good judgement call.

exabrial commented 4 years ago

Hey guys, has anyone had time to evaluate this? thank you

geopossachs commented 4 years ago

i would rather not like to keep data in a listner. i think but we can use the attributes of the components. I have prepared a pr on your idea. please check if this would work for sessionless. I would reject this

1123