Wednesday, October 18, 2017
How to easily get logged in user in Liferay.
ServiceContextThreadLocal.getServiceContext().getUserId();
reference:
http://liferay-hacks.blogspot.my/2014/01/get-current-logged-in-user-easily-in.html
Subscribe to:
Post Comments (Atom)
Popular Posts
- Velocity without template(.vm) file
- How to edit Liferay email notification templates
- How to switch EJB client to local or remote interface without changing code
- Easy way to add AJAX action to HTML element with Richfaces and Primefaces
- How to display dynamic PDF document with <p:media /> component
- How to disable row selection in PrimeFaces datatable
- How to deploy jdbc driver as a module in JBoss AS7
- Group Chatting with SparkWeb and OpenFire
- Primefaces fileDownload in Liferay
- How to get Company Id in Liferay
No comments:
Post a Comment