IBM Support

The Enhanced Faces Component - "Link - Command" (<h:commandLink> tag) item does not work in a JSF 1.x portlet project on WebSphere Portal Server V8.0

Question & Answer


Question

Does a command link work in a JavaServer Faces (JSF) 1.x portlet project on IBM WebSphere Portal v8.0 with default JSF implementation?

Cause

The default JSF implementation for WebSphere Portal Server v8.0 is of Apache MyFaces, and the project created for WebSphere Portal V7.0 runtime uses JSF implementation from Sun Microsystems, Inc.
"ReferenceError: myfaces is not defined" is thrown on the firebug when the command link is clicked in a JSF 1.x portlet project on WebSphere Portal Server v8.0.

Answer

The Enhanced Faces Component - "Link - Command" (<h:commandLink> tag) item does not work in a JSF 1.x portlet project published on WebSphere Portal Server v8.0 with default JSF implementation. To make this work you can use following options:

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Portal \/ Portlet Development","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.5;8.5.1;8.5.5;9.0;9.0.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21643842