Fórumok

Nyitólap » Liferay Portal » English » 2. Using Liferay » General

Kombinált nézet Egyszerű nézet Fa-nézet
Szálak [ Előző | Következő ]
21 - 23 / 23 tétel megjelenítése.
a következőből: 2
Neil Griffin
RE: How to Changing JSF portlet View Page in doView or in any managed Bean
2013. január 19. 3:52
Válasz

Neil Griffin

LIFERAY STAFF

Rangsorolás: Liferay Legend

Hozzászólások: 1421

Csatlakozás dátuma: 2005. július 26.

Legújabb hozzászólások

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
2013. január 25. 6:50
Válasz

Muhammad Taha

Rangsorolás: Junior Member

Hozzászólások: 34

Csatlakozás dátuma: 2012. május 1.

Legújabb hozzászólások

Thanks Neil.
Neil Griffin
RE: How to Changing JSF portlet View Page in doView or in any managed Bean
2013. január 25. 6:55
Válasz

Neil Griffin

LIFERAY STAFF

Rangsorolás: Liferay Legend

Hozzászólások: 1421

Csatlakozás dátuma: 2005. július 26.

Legújabb hozzászólások

My pleasure.
21 - 23 / 23 tétel megjelenítése.
a következőből: 2