Examples of UISelectItem


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

  }

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

    if (markup != null) {
      if (!markup.isLiteralText()) {
        component.setValueExpression("markup", markup);
      } else {
        component.setMarkup(org.apache.myfaces.tobago.context.Markup.valueOf(markup.getExpressionString()));
      }
    }
    if (itemValue != null) {
      component.setValueExpression("itemValue", itemValue);
    }

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

    if (value != null) {
      if (!value.isLiteralText()) {
        component.setValueExpression("value", value);
      /*} else {
        component.setValue(value.getExpressionString());*/
      }
    }
    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.