Foren

How do we get current user info in the web form plugin portlet?

thumbnail
Neetu Mishra, geändert vor 11 Jahren.

How do we get current user info in the web form plugin portlet?

Junior Member Beiträge: 75 Beitrittsdatum: 21.05.12 Neueste Beiträge
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:
ThemeDisplay themeDisplay = (ThemeDisplay) renderReq.getAttribute(WebKeys.THEME_DISPLAY);
User user = themeDisplay.getUser();


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

Thanks in Advance!!

--
Neetu
thumbnail
Hitoshi Ozawa, geändert vor 11 Jahren.

RE: How do we get current user info in the web form plugin portlet? (Antwort)

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
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.
thumbnail
Neetu Mishra, geändert vor 11 Jahren.

RE: How do we get current user info in the web form plugin portlet?

Junior Member Beiträge: 75 Beitrittsdatum: 21.05.12 Neueste Beiträge
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