Foros de discusión

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

thumbnail
Neetu Mishra, modificado hace 11 años.

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

Junior Member Mensajes: 75 Fecha de incorporación: 21/05/12 Mensajes recientes
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

Archivos adjuntos:

thumbnail
Hitoshi Ozawa, modificado hace 11 años.

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

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
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 hace 11 años.

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

Junior Member Mensajes: 75 Fecha de incorporación: 21/05/12 Mensajes recientes
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