Check the session is signed in in XHTML
Get the signed in user in XHTML
Get the signed in user's properties in XHTML
#{facesContext.externalContext.requestMap['THEME_DISPLAY'].signedIn}
Get the signed in user in XHTML
#{facesContext.externalContext.requestMap['THEME_DISPLAY'].user}
Get the signed in user's properties in XHTML
#{facesContext.externalContext.requestMap['THEME_DISPLAY'].fullName}
#{facesContext.externalContext.requestMap['THEME_DISPLAY'].lastLoginDate}
WARNING, this not work for Liferay 6.2, should use the following on the 6.2:
ReplyDeletefacesContext.externalContext.requestMap['LIFERAY_SHARED_THEME_DISPLAY']
thanks for the sharing
Delete