Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Nayrouz NZ
How do I get current user info in the web form portlet?
17 de Fevereiro de 2013 01:35
Resposta

Nayrouz NZ

Ranking: New Member

Mensagens: 22

Data de entrada: 27 de Dezembro de 2012

Mensagens recentes

hi,
Liferay webform portlet doesnt send the "current User id" , I mean User who is logged.
I am trying to customize the web form portlet by coping the whole code into other new portlet. and I need the id or screen name or the email @ of the logged user to be filled automatically into the web-form.
I ll be grateful if you coud give me some help with this. thanks
Chirag Patadia
RE: How do I get current user info in the web form portlet?
17 de Fevereiro de 2013 02:50
Resposta

Chirag Patadia

Ranking: Junior Member

Mensagens: 29

Data de entrada: 2 de Fevereiro de 2012

Mensagens recentes

You can try with ThemeDisplay object which you can get it from request object. For your quick reference you can check with below code snippet.

1ThemeDisplay td  =(ThemeDisplay)request.getAttribute(WebKeys.THEME_DISPLAY);
2User user = td.getUser();