掲示板

Render portlet contents differently based on view mode

11年前 に Gaurav Sharma によって更新されました。

Render portlet contents differently based on view mode

Junior Member 投稿: 39 参加年月日: 12/11/01 最新の投稿
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?
thumbnail
11年前 に Kyle Joseph Stiemann によって更新されました。

RE: Render portlet contents differently based on view mode (回答)

Liferay Master 投稿: 760 参加年月日: 13/01/14 最新の投稿
You could put something like this in your main view:
<ui:include src="#{request.windowState}.xhtml" />

And then create normal.xhtml and maximized.xhtml ui:composition files.

- Kyle
11年前 に Gaurav Sharma によって更新されました。

RE: Render portlet contents differently based on view mode

Junior Member 投稿: 39 参加年月日: 12/11/01 最新の投稿
Very interesting suggestion Kyle. Didn't think of that.