Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Nayrouz NZ
How do I get current user info in the web form portlet?
17 febbraio 2013 1.35
Risposta

Nayrouz NZ

Punteggio: New Member

Messaggi: 22

Data di Iscrizione: 27 dicembre 2012

Messaggi recenti

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 febbraio 2013 2.50
Risposta

Chirag Patadia

Punteggio: Junior Member

Messaggi: 29

Data di Iscrizione: 2 febbraio 2012

Messaggi recenti

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();