[richfaces-issues] [JBoss JIRA] Created: (RF-10855) styleClass attribute doesn't work properly for h:comandButton and a4j:commandButton if setting org.richfaces.CONTROL_SKINNING as enabled.
Gary Hu (JIRA)
jira-events at lists.jboss.org
Wed Apr 6 15:44:33 EDT 2011
styleClass attribute doesn't work properly for h:comandButton and a4j:commandButton if setting org.richfaces.CONTROL_SKINNING as enabled.
-----------------------------------------------------------------------------------------------------------------------------------------
Key: RF-10855
URL: https://issues.jboss.org/browse/RF-10855
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Gary Hu
If org.richfaces.CONTROL_SKINNING is set as enabled, then the styleClass attribute doesn't work properly for h:commandButton and a4j:commandButton. But it works fine with h:commandLink and a4j:commandLink.
here is an example:
<style type="text/css">
.test {
color: green;
font-size: 22px;
font-family: Verdana,Arial;
border:1px;
height:50px;
width:50px;
font-weight:bold;
background-color: yellow;
}
</script>
<f:view>
<h:form id="holidayMasterDetailsForm">
<h:commandButton id="testBtn" value="test" styleClass="test" />
<h:commandLink id="testLink" value="link test" styleClass="test" />
<a4j:commandButton id="testa4jbtn2" value="a4j button" styleClass="test" />
<a4j:commandLink id="testa4jlink" value="a4j link" styleClass="test" />
</h:form>
</f:view>
The css class test is attached to the components. Some properties, such as height and width, work fine. But the properties color, background-colo, font, etc, don't work.
If setting org.richfaces.CONTROL_SKINNING as disabled, the styleClass attribute works fine but the richfaces components lose skin.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list