public abstract class ColorPickerRendererBase extends HeaderResourcesRendererBase{
public void decode(FacesContext context, UIComponent component){
ExternalContext external = context.getExternalContext();
Map requestParams = external.getRequestParameterMap();
UIColorPicker colorPicker = (UIColorPicker)component;
String clientId = colorPicker.getClientId(context);
String submittedValue = (String)requestParams.get(clientId);
if (submittedValue != null) {
colorPicker.setSubmittedValue(submittedValue);
}
}