[richfaces-issues] [JBoss JIRA] Updated: (RF-10855) styleClass attribute doesn't work properly for h:comandButton and a4j:commandButton if setting org.richfaces.CONTROL_SKINNING as enabled.

Jay Balunas (JIRA) jira-events at lists.jboss.org
Mon Apr 11 10:23:33 EDT 2011


     [ https://issues.jboss.org/browse/RF-10855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jay Balunas updated RF-10855:
-----------------------------

        Fix Version/s: 3.Future
    Affects Version/s: 3.3.1.SP3


> 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) 
>    Affects Versions: 3.3.1.SP3
>            Reporter: Gary Hu
>             Fix For: 3.Future
>
>
> 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