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

Post a Comment