Package org.jboss.seam.ui.component.html

Examples of org.jboss.seam.ui.component.html.HtmlSelectItems


     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlSelectItems comp = (HtmlSelectItems) component;
             
            if (this._disabled != null) {
        if (this._disabled.isLiteralText()) {
          try {
                       
            java.lang.Boolean __disabled = (java.lang.Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._disabled.getExpressionString(),
                      java.lang.Boolean.class);
         
                        comp.setDisabled(__disabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("disabled", this._disabled);
        }
      }
                        
            if (this._escape != null) {
        if (this._escape.isLiteralText()) {
          try {
                       
            java.lang.Boolean __escape = (java.lang.Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._escape.getExpressionString(),
                      java.lang.Boolean.class);
         
                        comp.setEscape(__escape);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("escape", this._escape);
        }
      }
                         
            if (this._hideNoSelectionLabel != null) {
        if (this._hideNoSelectionLabel.isLiteralText()) {
          try {
                       
            java.lang.Boolean __hideNoSelectionLabel = (java.lang.Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._hideNoSelectionLabel.getExpressionString(),
                      java.lang.Boolean.class);
         
                        comp.setHideNoSelectionLabel(__hideNoSelectionLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("hideNoSelectionLabel", this._hideNoSelectionLabel);
        }
      }
                         
            if (this._itemValue != null) {
        if (this._itemValue.isLiteralText()) {
          try {
                       
            java.lang.Object __itemValue = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._itemValue.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setItemValue(__itemValue);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("itemValue", this._itemValue);
        }
      }
                        
            if (this._label != null) {
        if (this._label.isLiteralText()) {
          try {
                       
            java.lang.String __label = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._label.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLabel(__label);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("label", this._label);
        }
      }
                        
            if (this._noSelectionLabel != null) {
        if (this._noSelectionLabel.isLiteralText()) {
          try {
                       
            java.lang.String __noSelectionLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._noSelectionLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setNoSelectionLabel(__noSelectionLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("noSelectionLabel", this._noSelectionLabel);
        }
      }
                         
            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) {
          comp.setVar(this._var);
        }
                       }
View Full Code Here


     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlSelectItems comp = (HtmlSelectItems) component;
             
            if (this._disabled != null) {
        if (this._disabled.isLiteralText()) {
          try {
                       
            java.lang.Boolean __disabled = (java.lang.Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._disabled.getExpressionString(),
                      java.lang.Boolean.class);
         
                        comp.setDisabled(__disabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("disabled", this._disabled);
        }
      }
                        
            if (this._escape != null) {
        if (this._escape.isLiteralText()) {
          try {
                       
            java.lang.Boolean __escape = (java.lang.Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._escape.getExpressionString(),
                      java.lang.Boolean.class);
         
                        comp.setEscape(__escape);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("escape", this._escape);
        }
      }
                         
            if (this._hideNoSelectionLabel != null) {
        if (this._hideNoSelectionLabel.isLiteralText()) {
          try {
                       
            java.lang.Boolean __hideNoSelectionLabel = (java.lang.Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._hideNoSelectionLabel.getExpressionString(),
                      java.lang.Boolean.class);
         
                        comp.setHideNoSelectionLabel(__hideNoSelectionLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("hideNoSelectionLabel", this._hideNoSelectionLabel);
        }
      }
                         
            if (this._itemValue != null) {
        if (this._itemValue.isLiteralText()) {
          try {
                       
            java.lang.Object __itemValue = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._itemValue.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setItemValue(__itemValue);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("itemValue", this._itemValue);
        }
      }
                        
            if (this._label != null) {
        if (this._label.isLiteralText()) {
          try {
                       
            java.lang.String __label = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._label.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLabel(__label);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("label", this._label);
        }
      }
                        
            if (this._noSelectionLabel != null) {
        if (this._noSelectionLabel.isLiteralText()) {
          try {
                       
            java.lang.String __noSelectionLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._noSelectionLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setNoSelectionLabel(__noSelectionLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("noSelectionLabel", this._noSelectionLabel);
        }
      }
                         
            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) {
          comp.setVar(this._var);
        }
                       }
View Full Code Here

TOP

Related Classes of org.jboss.seam.ui.component.html.HtmlSelectItems

Copyright © 2018 www.massapicom. 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.