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
- How to handle multilingual error messages for jQuery validation plugins
- How to use jQuery validation plugin in JSF
- How to switch EJB client to local or remote interface without changing code
- How to display dynamic PDF document with <p:media /> component
- Getting started with Oracle SQL developer Data modeler
- Hacking the JBoss JNDI Datasource configuration
- java.lang.ClassNotFoundException: com.sun.crypto.provider.SunJCE from [Module "deployment.ROOT.war:main" from Service Module Loader]
- How to load file(s) in the same directory
- How to increase console line number in Eclipse
- How to verify jQuery in Richfaces 4 is working
No comments:
Post a Comment