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