Specifying defaultColor for <af:inputColor>

The <af:inputColor> creates a text field for entering colors and a button for picking colors from a palette. If you need to specify defaultColor for this component, you can use java.lang.String of hex color code as shown in the following sample. Please note that defaultColor value follows #RRGGBB syntax.
 <af:inputColor  label="Enter or select color from palette below"
  compact="false" defaultColor="#000000" id="id1"/>

Comments

This is not working. Please suggest me on this

Disclaimer

The views expressed on this blog are my own and do not necessarily reflect the views of my employer.