with jsp I can easily print the logged in principal using: <%= request.getUserPrincipal() %>
now I would like to do the same using JSF 2.0 + Facelets. How to do that? I have been trying for a while but no success so far.
Tx in advance.
<h:outputText value="#{request.getUserPrincipal()}" />
should work in JSF 2.0, if you want to merely display the current user.