PrincipalThreadLocal.getUserId() is 0 for Icefaces (1.8.2) portlets

81 views Asked by At

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.

0

There are 0 answers