3 Replies Latest reply on Dec 9, 2009 10:15 AM by Oleksii Vavilkin

    how to get user credentials from a portlet

    Oleksii Vavilkin Newbie


      I'm trying to modify my application (written with Seam, RichFaces and EJB) to get the correct user credentials from Portlet Container. I've read throught the booking example, the username there is recieved from credentials.getUsername(). I've found this in org.jboss.seam.example.booking.HotelBookingAction, bookHotel(). Once I do the same I get "Null Pointer Exception".
      Could you point me the correct way to recieve the credentials of a currently logged in user?
      Tnx in advance!