[GLASSFISH-6742] commandLink styleClass doesn't work Created: 07/Nov/08  Updated: 02/Dec/11

Status: Open
Project: glassfish
Component/s: web_container
Affects Version/s: v2.1
Fix Version/s: 4.0

Type: Bug Priority: Minor
Reporter: dhcavalcanti Assignee: Ed Burns
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: All
Platform: Linux

Issuezilla Id: 6,742
Tags: 3_1-exclude



I have a JSF page in which I set the styleClass for a commandLink. However, the
generated page does not rendered the stylized link.

Here is the excerpt from my stylesheet:
.commandLink {

font-weight: bold;
text-decoration: none;

color: #661A0E;

margin: 0px 0px 0px 0px;
padding: 5px 15px 5px 15px;


.commandLink:hover {
background: #F5F0DA;

Here is the commandLink tag:
<h:commandLink sytleClass="commandLink" value="Logout"



And here is the generated link when the page is rendered:
<a href="#" onclick="if(typeof jsfcljs ==



Notice that the "class" attribute is not rendered as described in the tag lib in

I don't want to set the stylesheet with the a and a:hover definitions globally
(which would then render the links properly) because I have different kinds of
links that should be stylized differently.

Comment by jluehe [ 07/Nov/08 ]

I'll have Ryan take a look.

Comment by sanandal [ 11/Jan/09 ]

"Reclassifying as P4 because this issue is not deemed "must fix" for this v2.1
release whose primary release driver is SailFin.
This issue will be scrubbed after this release and will be given the right
priority for the next release."

Comment by kumara [ 01/Sep/09 ]

Changing version from 9.1.1 to v2.1 to reflect new name/version.

Comment by Ryan Lubke [ 21/Jun/10 ]

Passing to Ed.

Comment by Ed Burns [ 19/Nov/10 ]

Not planned for 3.2. Not high enough priority.

Generated at Fri Jul 31 08:18:48 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.