The Java Server Faces (JSF) DataTable's columnClasses Styles Are Not Applied to the Page After Glassfish Application Server Upgrade (Doc ID 1352060.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle GlassFish Server - Version: 2.1.1 to 3.1.1 - Release: 2.1 to 3.1
Information in this document applies to any platform.

Symptoms

After you've upgraded your Glassfish application server, you've noticed that the columnClass on a Java Server Faces (JSF) is no longer being applied.

In the following JSF sample code the columnClasses attribute holds a single value, and the dataTable has four columns:

<HTML>
<HEAD> <title>Zoo</title> </HEAD>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<body bgcolor="white">
<f:view>
<div>
<h:dataTable columnClasses="columnClass" headerClass="headerClass" style ="border-width:0" border="10" id="list1" styleClass = "font_normal" value="">
<h:column>
   <f:facet name="header">
     <h:outputText value="Tiger"></h:outputText>
   </f:facet>
</h:column>
<h:column>
    <f:facet name="header">
      <h:outputText value="Cheetah"></h:outputText>
    </f:facet>
</h:column>
<h:column>
    <f:facet name="header">
      <h:outputText value="Lion"></h:outputText>
    </f:facet>
</h:column>
<h:column>
    <f:facet name="header">
      <h:outputText value="Leopard"></h:outputText>
    </f:facet>
</h:column>

</h:dataTable>
</div>
</f:view>
</body>
</html>


Before upgrade, a snapshot from the browser 's HTML source:

This can occur after upgrading to GlassFish Server 2.1.1 patch 7 or later.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms