IBM Support

Facelets do not render in JSF 2.0 projects configured with User Library

Troubleshooting


Problem

IBM Rational Application Developer for WebSphere Software projects that have the JSF 2.0 Facet and are configured with a User Library cause Facelets published to WebSphere Application Server to display the bare xhtml source code, instead of the expected rendering of the controls on the page.

Symptom

Following the steps in technote 1450184, configure a Dynamic Web Project with the Faces 2.0 Facet and with a User Library.

Symptom 1:

Add a Facelet to the Project, without any JSF controls on this page or any other page in the Project.

Run the page on WebSphere Application Server.

Results:

The xhtml source of the page is shown in the browser, not the expected empty web page.

Symptom 2:

Add one JSF control to the Facelet.

Run the page on WebSphere Application Server.

Results:

A faces-config.xml has been added to the project. It uses the DTD required by JSF 1.x.

The xhtml source of the page is shown in the browser, not the expected web page with the control.

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Web Development","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"8.0;8.0.1;8.0.2;8.0.3","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
29 September 2018

UID

swg21503733