Fórum

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

thumbnail
Neetu Mishra, modificado 11 Anos atrás.

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

Junior Member Postagens: 75 Data de Entrada: 21/05/12 Postagens Recentes
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, modificado 11 Anos atrás.

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

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
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, modificado 11 Anos atrás.

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

Junior Member Postagens: 75 Data de Entrada: 21/05/12 Postagens Recentes
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