This content has been marked as final.
Show 1 reply
-
1. Re: Question about the EL expression of @Produces obj
wangliyu Jul 29, 2010 1:04 PM (in response to wangliyu)Just figured out, in case anyone has same question, turns out the solution is really simple:
@Produces @Named("currentUser") @LoggedIn public User getCurrentUser() { ... return user; }and in the JSF page, you can just use '#{currentUser.name}'