Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Neetu Mishra
How do we get current user info in the web form plugin portlet?
August 14, 2012 7:43 AM
Answer

Neetu Mishra

Rank: Junior Member

Posts: 76

Join Date: May 21, 2012

Recent Posts

Hi All,

I am using LR6 & I am customizing the web form plugin portlet by coping the whole code into my new form portlet.

My requirements are to check if the user is logged-in then fill the user details say id should be filled automatically into the web-form. Please see the attached snapshot then it might be easy to understand the problem. emoticon

Since it is a plugin I cannot use some thing like this:
1ThemeDisplay themeDisplay = (ThemeDisplay) renderReq.getAttribute(WebKeys.THEME_DISPLAY);
2User user = themeDisplay.getUser();


Please help me regarding this. Any help would be greatly appreciated.

Thanks in Advance!!

--
Neetu
Attachment

Attachments: web_form.png (25.9k)
Hitoshi Ozawa
RE: How do we get current user info in the web form plugin portlet?
August 15, 2012 5:56 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

Sorry, but I think most of us would just develop a custom portlet instead of using web form portlet because it's much easier than trying to customize web form portlet.
Neetu Mishra
RE: How do we get current user info in the web form plugin portlet?
August 15, 2012 7:46 PM
Answer

Neetu Mishra

Rank: Junior Member

Posts: 76

Join Date: May 21, 2012

Recent Posts

Thanks Hitoshi for your quick response & sharing your thoughts!!

Now even I think so that i should go for custom portlet development that would be pretty easier then the customizing the web form plugin.emoticon

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!