示例#1
0
 public void release() {
   // TODO Auto-generated method stub
   super.release();
   this._style = null;
   this._styleClass = null;
   this._title = null;
 }
示例#2
0
 public void release() {
   // TODO Auto-generated method stub
   super.release();
   this._dataModel = null;
   this._name = null;
   this._value = null;
   this._var = null;
 }
示例#3
0
  /* (non-Javadoc)
   * @see org.ajax4jsf.components.taglib.html.HtmlCommandButtonTagBase#setProperties(javax.faces.component.UIComponent)
   */
  protected void setProperties(UIComponent component) {
    // TODO Auto-generated method stub
    super.setProperties(component);
    HtmlSpan comp = (HtmlSpan) component;

    if (this._style != null) {
      if (this._style.isLiteralText()) {
        try {

          java.lang.String __style =
              (java.lang.String)
                  getFacesContext()
                      .getApplication()
                      .getExpressionFactory()
                      .coerceToType(this._style.getExpressionString(), java.lang.String.class);

          comp.setStyle(__style);
        } catch (ELException e) {
          throw new FacesException(e);
        }
      } else {
        component.setValueExpression("style", this._style);
      }
    }

    if (this._styleClass != null) {
      if (this._styleClass.isLiteralText()) {
        try {

          java.lang.String __styleClass =
              (java.lang.String)
                  getFacesContext()
                      .getApplication()
                      .getExpressionFactory()
                      .coerceToType(this._styleClass.getExpressionString(), java.lang.String.class);

          comp.setStyleClass(__styleClass);
        } catch (ELException e) {
          throw new FacesException(e);
        }
      } else {
        component.setValueExpression("styleClass", this._styleClass);
      }
    }

    if (this._title != null) {
      if (this._title.isLiteralText()) {
        try {

          java.lang.String __title =
              (java.lang.String)
                  getFacesContext()
                      .getApplication()
                      .getExpressionFactory()
                      .coerceToType(this._title.getExpressionString(), java.lang.String.class);

          comp.setTitle(__title);
        } catch (ELException e) {
          throw new FacesException(e);
        }
      } else {
        component.setValueExpression("title", this._title);
      }
    }
  }
示例#4
0
  /* (non-Javadoc)
   * @see org.ajax4jsf.components.taglib.html.HtmlCommandButtonTagBase#setProperties(javax.faces.component.UIComponent)
   */
  protected void setProperties(UIComponent component) {
    // TODO Auto-generated method stub
    super.setProperties(component);
    HtmlSelection comp = (HtmlSelection) component;

    if (this._dataModel != null) {
      if (this._dataModel.isLiteralText()) {
        try {

          java.lang.String __dataModel =
              (java.lang.String)
                  getFacesContext()
                      .getApplication()
                      .getExpressionFactory()
                      .coerceToType(this._dataModel.getExpressionString(), java.lang.String.class);

          comp.setDataModel(__dataModel);
        } catch (ELException e) {
          throw new FacesException(e);
        }
      } else {
        component.setValueExpression("dataModel", this._dataModel);
      }
    }

    if (this._name != null) {
      if (this._name.isLiteralText()) {
        try {

          java.lang.String __name =
              (java.lang.String)
                  getFacesContext()
                      .getApplication()
                      .getExpressionFactory()
                      .coerceToType(this._name.getExpressionString(), java.lang.String.class);

          comp.setName(__name);
        } catch (ELException e) {
          throw new FacesException(e);
        }
      } else {
        component.setValueExpression("name", this._name);
      }
    }

    if (this._value != null) {
      if (this._value.isLiteralText()) {
        try {

          java.lang.Object __value =
              (java.lang.Object)
                  getFacesContext()
                      .getApplication()
                      .getExpressionFactory()
                      .coerceToType(this._value.getExpressionString(), java.lang.Object.class);

          comp.setValue(__value);
        } catch (ELException e) {
          throw new FacesException(e);
        }
      } else {
        component.setValueExpression("value", this._value);
      }
    }

    if (this._var != null) {
      if (this._var.isLiteralText()) {
        try {

          java.lang.String __var =
              (java.lang.String)
                  getFacesContext()
                      .getApplication()
                      .getExpressionFactory()
                      .coerceToType(this._var.getExpressionString(), java.lang.String.class);

          comp.setVar(__var);
        } catch (ELException e) {
          throw new FacesException(e);
        }
      } else {
        component.setValueExpression("var", this._var);
      }
    }
  }