@PostConstructResource
 public void initialize() {
   FacesContext context = FacesContext.getCurrentInstance();
   Skin skin = SkinFactory.getInstance(context).getSkin(context);
   Skin defaultSkin = SkinFactory.getInstance(context).getDefaultSkin(context);
   basicColor = skin.getColorParameter(context, Skin.SELECT_CONTROL_COLOR);
   if (basicColor == null) {
     basicColor = defaultSkin.getColorParameter(context, Skin.SELECT_CONTROL_COLOR);
   }
 }
Ejemplo n.º 2
0
  @PostConstructResource
  public void initialize() {
    FacesContext context = FacesContext.getCurrentInstance();
    Skin skin = SkinFactory.getInstance(context).getSkin(context);
    Skin defaultSkin = SkinFactory.getInstance(context).getDefaultSkin(context);

    this.color = skin.getColorParameter(context, colorParam);
    if (this.color == null) {
      this.color = defaultSkin.getColorParameter(context, colorParam);
    }
  }