Forums de discussion
Render portlet contents differently based on view mode
Gaurav Sharma, modifié il y a 11 années.
Render portlet contents differently based on view mode
Junior Member Publications: 39 Date d'inscription: 01/11/12 Publications récentes
I'd like to have different contents displayed when a portlet is in "normal mode" as opposed to "maximized mode". I'm using JSF as the view technology. Is there a check I can perform on the JSF end to check which view is currently being used?
Kyle Joseph Stiemann, modifié il y a 11 années.
RE: Render portlet contents differently based on view mode (Réponse)
Liferay Master Publications: 760 Date d'inscription: 14/01/13 Publications récentes
You could put something like this in your main view:
And then create normal.xhtml and maximized.xhtml ui:composition files.
- Kyle
<ui:include src="#{request.windowState}.xhtml" />
And then create normal.xhtml and maximized.xhtml ui:composition files.
- Kyle
Gaurav Sharma, modifié il y a 11 années.
RE: Render portlet contents differently based on view mode
Junior Member Publications: 39 Date d'inscription: 01/11/12 Publications récentes
Very interesting suggestion Kyle. Didn't think of that.