Oracle ADF Faces - af:convertColor
Summary

Tag name: < af:convertColor >

Converts an strings to and from java.awt.Color objects. The set of patterns used for conversion can be overriden.

Example:

<af:selectInputColor id="sicConv" chooseId="cpConv"
  label="Enter or select color from palette below"
  value="#{color.colorValue1}">
  <af:convertColor  patterns="rrr-ggg-bbb #RRGGBB" transparentAllowed="false" />
</af:selectInputColor>
<af:chooseColor id="cpConv"
  colorData="#{adfFacesContext.colorPalette.default49}"/>
           

Attributes
Name Type Supports EL? Description
convertMessageDetail String Yes

Custom error message to be used, for creating detail part of faces message, when users input does not match the specified pattern.

Parameters:

  • {0} the label that identifies the component
  • {1} value entered by the user
  • {2} the pattern the converter is expecting

patterns String[ ] Yes The set of acceptable patterns, as a whitespace separated list. The first pattern in the list will be used for formatting java.awt.Color values. All patterns will be tried in order to convert Strings back into java.awt.Colors. If no patterns are set, the default is "#RRGGBB r,g,b".
transparentAllowed boolean Yes Whether the converter should allow generation of a "transparent" color (a black color with an alpha of zero). Th e converter uses a String version of "transparent" that is translated for the user's locale.
Copyright © 2003-2006, Oracle Corporation. All Rights Reserved.

E-mail this page
Printer View Printer View
Oracle Is The Information Company About Oracle | Oracle RSS Feeds | Careers | Contact Us | Site Maps | Legal Notices | Terms of Use | Privacy