Support for JavaServer Faces 2.2 | HCL Digital Experience

HCL Digital Experience 8.5 and 9.5 includes the HCL Portlet 2.0 Bridge for JSF 2.2. The bridge provides customers an interface to developing and running JSF Portlets.

Note: Refer to JavaServer Faces implementation for information about HCL Digital Experience JSF Bridge.

Limitations when running HCL DX Portlet Bridge on WebSphere Application Server 9.0

Customers should be aware of the following limitations and best coding practices when running the bridge on WAS 9.0:
  1. Not all new JSF 2.2 functionality is supported by the HCL Portlet 2.0 Bridge for JSF 2.2. Following list of features are not supported currently:
    1. Resource Library Contract
    2. Faces Flow
    3. Stateless Views
    4. File Upload via <h:inputFile> directive
    5. CDI Session Beans are limited to session scope not portlet session scope
  2. Portlets must be written to the JSR286 specification.
  3. The HCL Portlet 2.0 Bridge for JSF 2.2 is dependent on the use of Apache MyFaces JSF implementation. It does not function with the SUN RI JSF Implementation.
  4. HCL provides the GenericFacesPortlet class for customers to take advantage of the JSF Bridge functionality. For backward compatibility reasons, the HCL Portlet Bridge provides the following methods of view manipulation within the portlet code.
    Calculate the view Id. Priority order:
    1. It is a partial action - use partial view parameter
    2. It is a partial render or path setting - use view from path
    3. View Id is set as a request parameter
    4. View Id is set as a request attribute
    5. View Id calculated from portlet mode and the mode map
    Parameter/Attribute name for portlet mode
    1. view Mode =
    2. edit and edit_defaults mode =
    3. help mode =
    4. config mode =
  5. In order to utilize Portlet Session Beans, you must use the JSF bean/scope implementation (import javax.faces.bean.ManagedBean, javax.faces.bean.SessionScoped). Portlet Session Bean support of CDI in JSF 2.2 is dependent on a Portlet 3.0 container, which is not yet available for HCL Digital Experience.
  6. Ensure that all portlet implementations are not utilizing internal Portlet Bridge for JSF classes. In the past, articles and samples had been published utilizing the older bridge classes. Following list of samples or articles must not be used in custom portlets developed for DX 8.5 and 9.5 running on WAS 9.0 and later:
    • import;
    • import;
    • import;
    • import;
    • import;
    • import;
    • import;
    • import;