Fóruns

Início » Liferay Portal » English » 2. Using Liferay » General

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
Mostrando 21 - 23 de 23 resultados.
de 2
Neil Griffin
RE: How to Changing JSF portlet View Page in doView or in any managed Bean
19 de Janeiro de 2013 03:52
Resposta

Neil Griffin

LIFERAY STAFF

Ranking: Liferay Legend

Mensagens: 2250

Data de entrada: 26 de Julho de 2005

Mensagens recentes

I'm so glad to hear that it's working emoticon

Regarding getting the portal page, there is a contextual class called ThemeDisplay that has lots of getter methods on it that will help you.

You can get it like this in a backing bean:
1FacesContext facesContext = FacesContext.getCurrentInstance();
2ThemeDisplay themeDisplay = (ThemeDisplay) facesContext.getExternalContext.getRequestMap().get(WebKeys.THEME_DISPLAY);


Or if you are using the liferay-faces-portal.jar dependency, you can do this:
1LiferayFacesContext liferayFacesContext = LiferayFacesContext.getInstance();
2ThemeDisplay themeDisplay = liferayFacesContext.getThemeDisplay();


In order to get the base URL for the portal, you can call methods like PortalUtil.getPortalURL(PortletRequest);
Muhammad Taha
RE: How to Changing JSF portlet View Page in doView or in any managed Bean
25 de Janeiro de 2013 06:50
Resposta

Muhammad Taha

Ranking: Junior Member

Mensagens: 74

Data de entrada: 1 de Maio de 2012

Mensagens recentes

Thanks Neil.
Neil Griffin
RE: How to Changing JSF portlet View Page in doView or in any managed Bean
25 de Janeiro de 2013 06:55
Resposta

Neil Griffin

LIFERAY STAFF

Ranking: Liferay Legend

Mensagens: 2250

Data de entrada: 26 de Julho de 2005

Mensagens recentes

My pleasure.
Mostrando 21 - 23 de 23 resultados.
de 2