Liferay:JSP中可直接引用的Liferay對象

http://blog.csdn.net/samxx8/article/details/6559467


init.jsp中通過<liferay-theme:defineObjects /> 將這些對象注入到pageContext中。

然後在頁面中就可以直接引用了,這些對象包括:

themeDisplay - com.liferay.portal.theme.ThemeDisplay

company - com.liferay.portal.model.Company

account - com.liferay.portal.model.Account (deprecated)

user - com.liferay.portal.model.User

realUser - com.liferay.portal.model.User

contact - com.liferay.portal.model.Contact

layout - com.liferay.portal.model.Layout

layouts - List<com.liferay.portal.model.Layout>

plid - java.lang.Long

layoutTypePortlet - com.liferay.portal.model.LayoutTypePortlet

portletGroupId - java.lang.Long

permissionChecker - com.liferay.portal.security.permission.PermissionChecker

locale - java.util.Locale

timeZone - java.util.TimeZone

theme - com.liferay.portal.model.Theme

colorScheme - com.liferay.portal.model.ColorScheme

portletDisplay - com.liferay.portal.theme.PortletDisplay


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章