This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing Liferay User object for logged-in user

 
Shantanu Puranik
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Rich,
I've recently started working on Vaadin(6.6.4) based portlets on Liferay (6.0.6) using Tomcat.
Does your new book includes contents realted to Vaadin based portlets?

As of now I'm facing trouble in accessing Liferay User object for logged-in user.
My application class implements PortletRequestListener and PortletListener interfaces.
Corresponding methods implemented has following code:


This code is not working at my end.
Any clue on this?
 
Rich Sezov
Author
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to try getting the User out of the ThemeDisplay or ServiceContext objects instead. That always works for me.

--Rich
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!