public boolean setValue(Object value, View view) {

    // TextView
    //
    // (don't use instanceof, because CheckBox instanceof TextView)

    if (TextView.class.equals(view.getClass())) {
      ((TextView) view).setText(StringUtils.quietValueOf(value));
      return true;
    }

    // Unknown

    return false;
  }
  @Override
  public String convertForward(SV value) {

    return StringUtils.quietValueOf(value);
  }
Ejemplo n.º 3
0
  public String getAsString(FacesContext context, UIComponent component, Object value) {

    return StringUtils.quietValueOf(value);
  }