Expression language beans for accessing programming models
Expression language (EL) beans are available for accessing WebSphere Programming models. These beans are accessed through the PortalBean represented in the global namespace by wp. The beans provide access to HCL Digital Experience models and associated classes.
PortalBean
The PortalBean provides access to EL Beans that represent some of the HCL Digital Experience models. You can use these models to access resource information in your JSPs.
You can access the PortalBean (wp) with the following items. Append the following beans to wp. to create a bean in your JSP. For example, wp.themeList.current gets the current element and returns Theme.
-
Provides read access to the current access control permissions for a resource.
-
Provides read access to the current access control node for a resource.
-
-
Attaches marketing information to Portal resources such as portal pages, portlets, or web content items. Reads the analytics tags that are associated with an identifiable portal resource.
-
The AnalyticsTag expression bean represents a single analytics tag.
-
-
Provides access to the client profile.
-
Provides access to the identification services serialize and deserialize.
-
Provides access to the list of languages that are defined in portal.
-
Provides access to the interface that represents a portal language.
-
-
Provides access to the tree model representation of the layout of a page.
-
Provides access to the tree model representation object of the layout of a page.
-
Provides access to the interface that represents a container in a LayoutModel.
-
Provides access to the interface that represents a control in a LayoutModel.
-
-
-
wp.localizedDescription
Provides access to the description of the currently rendered page.
Example:
${wp.localizedDescription}Returns: Description for the current page description; it is never null.
-
wp.localizedTitle
Provides access to the title of the currently rendered page.
Example:
${wp.localizedTitle}Returns: Title for the current page title; it is never null.
-
Provides access to the aggregated metadata of a node. The metadata that can be provided by individual nodes of the content model are combined according to the hierarchy that the content model exposes for these nodes. Values set on the node itself take precedence over values set for its parents.
Example:
${wp.metadata[wp.selectionModel.selected]['com.ibm.portal.layout.template.ref']}Returns: Metadata, never null.
-
The module list bean accesses modules that are part of the modularized theme architecture. You can query individual modules and their attributes and identify of the currently used modules within the scope of the currently selected and rendered page and theme.
-
Represents one individual module.
-
The current module list always represents the list of modules within the scope of the current request, which is the currently selected page and theme. This module iterates through all modules, locate individual modules and query their capabilities. This is especially useful for portlet developers to check whether certain capabilities are available on the page or not.
-
Represents the aggregated capabilities of a list of modules. This is usually the non-deferred or deferred capabilities of the currently selected page and depends on how this object was fetched. It is useful for portlet developers to check whether certain capabilities are available on the page or not.
-
Represents one capability as defined by a module.
-
-
-
-
Provides access to the navigation model.
-
Provides access to a navigation node in a navigation model.
-
Provides access to a content node. This interface offers a way to obtain the type of the content node.
-
-
-
Public render parameters can be used by portlets to share context information. They are addressed with qualified names. The
wp.publicRenderParamexpression bean can be used within a theme or theme module to read the first String value of a public render parameter. -
The
wp.publicRenderParamValuesexpression bean can be used within a theme or theme module to read the values of a public render parameter. The public render parameter is read in the context of the currently selected page that is determined internally. -
Provides access to the set of configuration entries for the specified resource environment provider.
-
Object representing a set of properties mad available as part of the resource environment provider.
-
-
Provides access to a selection model for a navigation model.
-
Provides access to a navigation node in a navigation model.
-
Provides access to a content node. This interface offers a way to obtain the type of the content node.
-
-
-
Encapsulates the theme configuration parameter lookup process.
-
Provides access to all themes in the system and the currently selected theme.
-
Provides access to the attributes of one theme.
-
Provides access to all profiles in a theme and the currently selected profile.
-
Provides access to the attributes of one profile.
-
-
-
-
wp.title
Provides access to the title of the currently rendered page or the title information set by a portlet.
Example:
${wp.title}Returns: Title in the current locale as a string.
-
Provides access to the active user.
Common beans
-
The following beans are returned by many different beans and are used flexibly.
-
Provides access to the description of certain objects such as Navigation, Content, Theme, Profile, and others.
-
Provides access to the metadata of certain objects such as Navigation, Content, Theme, Profile, and others.
-
Provides access to the title of certain objects such as Navigation, Content, Theme, Profile, and others.
-
-
Creates a portal URL you can control with attributes.
-
Extends UrlGeneration on a page. All the UrlGeneration attributes are available in addition to these attributes.
-
Extends UrlGeneration in a portlet. All the UrlGeneration and UrlGenerationPage attributes are available in addition to these attributes.
-
-
Other Beans
These beans cannot be accessed through the PortalBean. To access the uiNavigationModel Bean, you must use the uiNavigationModel tag and define the variable name that you want the bean to be available under.
-
By default, the uiNavigationModel lists the visible pages as part of its iterator. When the Show hidden pages option is selected in the toolbar, it also lists the hidden pages. There is a mobile hidden flag for pages. The model also helps you specify a mobile test device class expression, which is used to evaluate if the system is rendered as part of a mobile request.
-
Provides access to a navigation node in a navigation model.
-