I am basically implementing logger on the generic actions like saving portlet's preferences in store
method of PortletPreferencesImpl
. Here I am calling PrincipalThreadLocal.getUserId()
to get user information.
Everything is fine for the Liferay OTB's portlets and for Primefaces 5.2 portlets but when I am saving preferences of Icefaces (1.8.2) portlet, I am always getting 0
from PrincipalThreadLocal.getUserId()
.
Why is this strange behavior? Please share your valuable feedback.