Examples of UISelectItems


Examples of org.apache.myfaces.tobago.component.UISelectItems

  }

  @Override
  protected void setProperties(final UIComponent uiComponent) {
    super.setProperties(uiComponent);
    final UISelectItems component = (UISelectItems) uiComponent;
    final FacesContext context = FacesContext.getCurrentInstance();
    final Application application = context.getApplication();
    if (itemValue != null) {
      component.setValueExpression("itemValue", itemValue);
    }

    if (itemLabel != null) {
      component.setValueExpression("itemLabel", itemLabel);
    }

    if (var != null) {
      component.setVar(var);
    }

    if (value != null) {
      if (!value.isLiteralText()) {
        component.setValueExpression("value", value);
      /*} else {
        component.setValue(value.getExpressionString());*/
      }
    }
    if (tip != null) {
      component.setValueExpression("tip", tip);
    }

    if (itemImage != null) {
      component.setValueExpression("itemImage", itemImage);
    }

    if (itemDisabled != null) {
      if (!itemDisabled.isLiteralText()) {
        component.setValueExpression("itemDisabled", itemDisabled);
      } else {
        component.setItemDisabled(Boolean.parseBoolean(itemDisabled.getExpressionString()));
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.