Examples of HtmlFileUpload


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

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlFileUpload comp = (HtmlFileUpload) component;
            
            if (this._accept != null) {
        if (this._accept.isLiteralText()) {
          try {
                       
            java.lang.String __accept = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._accept.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAccept(__accept);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("accept", this._accept);
        }
      }
                        
            if (this._accesskey != null) {
        if (this._accesskey.isLiteralText()) {
          try {
                       
            java.lang.String __accesskey = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._accesskey.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAccesskey(__accesskey);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("accesskey", this._accesskey);
        }
      }
                        
            if (this._align != null) {
        if (this._align.isLiteralText()) {
          try {
                       
            java.lang.String __align = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._align.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAlign(__align);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("align", this._align);
        }
      }
                        
            if (this._alt != null) {
        if (this._alt.isLiteralText()) {
          try {
                       
            java.lang.String __alt = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._alt.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAlt(__alt);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("alt", this._alt);
        }
      }
                                  if(null != this._contentType && this._contentType.isLiteralText()){
          throw new IllegalArgumentException("Component org.jboss.seam.ui.FileUpload with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property contentType");
        }
      
            if (this._contentType != null) {
        if (this._contentType.isLiteralText()) {
          try {
                       
            java.lang.String __contentType = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._contentType.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setContentType(__contentType);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("contentType", this._contentType);
        }
      }
                        setConverterProperty(comp, this._converter);
                  
            if (this._converterMessage != null) {
        if (this._converterMessage.isLiteralText()) {
          try {
                       
            java.lang.String __converterMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._converterMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setConverterMessage(__converterMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("converterMessage", this._converterMessage);
        }
      }
                                 if(null != this._data && this._data.isLiteralText()){
          throw new IllegalArgumentException("Component org.jboss.seam.ui.FileUpload with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property data");
        }
      
            if (this._data != null) {
        if (this._data.isLiteralText()) {
          try {
                       
            java.lang.Object __data = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._data.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setData(__data);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("data", this._data);
        }
      }
                        
            if (this._disabled != null) {
        if (this._disabled.isLiteralText()) {
          try {
                       
            Boolean __disabled = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._disabled.getExpressionString(),
                      Boolean.class);
         
                        comp.setDisabled(__disabled.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("disabled", this._disabled);
        }
      }
                                  if(null != this._fileName && this._fileName.isLiteralText()){
          throw new IllegalArgumentException("Component org.jboss.seam.ui.FileUpload with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property fileName");
        }
      
            if (this._fileName != null) {
        if (this._fileName.isLiteralText()) {
          try {
                       
            java.lang.String __fileName = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileName.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileName(__fileName);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileName", this._fileName);
        }
      }
                                 if(null != this._fileSize && this._fileSize.isLiteralText()){
          throw new IllegalArgumentException("Component org.jboss.seam.ui.FileUpload with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property fileSize");
        }
      
            if (this._fileSize != null) {
        if (this._fileSize.isLiteralText()) {
          try {
                       
            java.lang.Integer __fileSize = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileSize.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setFileSize(__fileSize);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileSize", this._fileSize);
        }
      }
                         
            if (this._immediate != null) {
        if (this._immediate.isLiteralText()) {
          try {
                       
            Boolean __immediate = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._immediate.getExpressionString(),
                      Boolean.class);
         
                        comp.setImmediate(__immediate.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("immediate", this._immediate);
        }
      }
                        
            if (this._localContentType != null) {
        if (this._localContentType.isLiteralText()) {
          try {
                       
            java.lang.String __localContentType = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._localContentType.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLocalContentType(__localContentType);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("localContentType", this._localContentType);
        }
      }
                        
            if (this._localFileName != null) {
        if (this._localFileName.isLiteralText()) {
          try {
                       
            java.lang.String __localFileName = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._localFileName.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLocalFileName(__localFileName);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("localFileName", this._localFileName);
        }
      }
                        
            if (this._localFileSize != null) {
        if (this._localFileSize.isLiteralText()) {
          try {
                       
            java.lang.Integer __localFileSize = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._localFileSize.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setLocalFileSize(__localFileSize);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("localFileSize", this._localFileSize);
        }
      }
                        
            if (this._localInputStream != null) {
        if (this._localInputStream.isLiteralText()) {
          try {
                       
            java.io.InputStream __localInputStream = (java.io.InputStream) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._localInputStream.getExpressionString(),
                      java.io.InputStream.class);
         
                        comp.setLocalInputStream(__localInputStream);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("localInputStream", this._localInputStream);
        }
      }
                         
            if (this._localValueSet != null) {
        if (this._localValueSet.isLiteralText()) {
          try {
                       
            Boolean __localValueSet = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._localValueSet.getExpressionString(),
                      Boolean.class);
         
                        comp.setLocalValueSet(__localValueSet.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("localValueSet", this._localValueSet);
        }
      }
                        
            if (this._maxlength != null) {
        if (this._maxlength.isLiteralText()) {
          try {
                       
            Integer __maxlength = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._maxlength.getExpressionString(),
                      Integer.class);
         
                        comp.setMaxlength(__maxlength.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("maxlength", this._maxlength);
        }
      }
                        
            if (this._onblur != null) {
        if (this._onblur.isLiteralText()) {
          try {
                       
            java.lang.String __onblur = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onblur.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnblur(__onblur);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onblur", this._onblur);
        }
      }
                        
            if (this._onchange != null) {
        if (this._onchange.isLiteralText()) {
          try {
                       
            java.lang.String __onchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnchange(__onchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onchange", this._onchange);
        }
      }
                        
            if (this._onclick != null) {
        if (this._onclick.isLiteralText()) {
          try {
                       
            java.lang.String __onclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnclick(__onclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onclick", this._onclick);
        }
      }
                        
            if (this._ondblclick != null) {
        if (this._ondblclick.isLiteralText()) {
          try {
                       
            java.lang.String __ondblclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ondblclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOndblclick(__ondblclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ondblclick", this._ondblclick);
        }
      }
                        
            if (this._onfocus != null) {
        if (this._onfocus.isLiteralText()) {
          try {
                       
            java.lang.String __onfocus = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onfocus.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnfocus(__onfocus);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onfocus", this._onfocus);
        }
      }
                        
            if (this._onkeydown != null) {
        if (this._onkeydown.isLiteralText()) {
          try {
                       
            java.lang.String __onkeydown = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onkeydown.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnkeydown(__onkeydown);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onkeydown", this._onkeydown);
        }
      }
                        
            if (this._onkeypress != null) {
        if (this._onkeypress.isLiteralText()) {
          try {
                       
            java.lang.String __onkeypress = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onkeypress.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnkeypress(__onkeypress);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onkeypress", this._onkeypress);
        }
      }
                        
            if (this._onkeyup != null) {
        if (this._onkeyup.isLiteralText()) {
          try {
                       
            java.lang.String __onkeyup = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onkeyup.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnkeyup(__onkeyup);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onkeyup", this._onkeyup);
        }
      }
                        
            if (this._onmousedown != null) {
        if (this._onmousedown.isLiteralText()) {
          try {
                       
            java.lang.String __onmousedown = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmousedown.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmousedown(__onmousedown);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmousedown", this._onmousedown);
        }
      }
                        
            if (this._onmousemove != null) {
        if (this._onmousemove.isLiteralText()) {
          try {
                       
            java.lang.String __onmousemove = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmousemove.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmousemove(__onmousemove);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmousemove", this._onmousemove);
        }
      }
                        
            if (this._onmouseout != null) {
        if (this._onmouseout.isLiteralText()) {
          try {
                       
            java.lang.String __onmouseout = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmouseout.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmouseout(__onmouseout);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmouseout", this._onmouseout);
        }
      }
                        
            if (this._onmouseover != null) {
        if (this._onmouseover.isLiteralText()) {
          try {
                       
            java.lang.String __onmouseover = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmouseover.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmouseover(__onmouseover);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmouseover", this._onmouseover);
        }
      }
                        
            if (this._onmouseup != null) {
        if (this._onmouseup.isLiteralText()) {
          try {
                       
            java.lang.String __onmouseup = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmouseup.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmouseup(__onmouseup);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmouseup", this._onmouseup);
        }
      }
                        
            if (this._onselect != null) {
        if (this._onselect.isLiteralText()) {
          try {
                       
            java.lang.String __onselect = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onselect.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnselect(__onselect);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onselect", this._onselect);
        }
      }
                         
            if (this._required != null) {
        if (this._required.isLiteralText()) {
          try {
                       
            Boolean __required = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._required.getExpressionString(),
                      Boolean.class);
         
                        comp.setRequired(__required.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("required", this._required);
        }
      }
                        
            if (this._requiredMessage != null) {
        if (this._requiredMessage.isLiteralText()) {
          try {
                       
            java.lang.String __requiredMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._requiredMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRequiredMessage(__requiredMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("requiredMessage", this._requiredMessage);
        }
      }
                        
            if (this._size != null) {
        if (this._size.isLiteralText()) {
          try {
                       
            Integer __size = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._size.getExpressionString(),
                      Integer.class);
         
                        comp.setSize(__size.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("size", this._size);
        }
      }
                        
            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._tabindex != null) {
        if (this._tabindex.isLiteralText()) {
          try {
                       
            java.lang.String __tabindex = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._tabindex.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTabindex(__tabindex);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("tabindex", this._tabindex);
        }
      }
                        
            if (this._valid != null) {
        if (this._valid.isLiteralText()) {
          try {
                       
            Boolean __valid = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._valid.getExpressionString(),
                      Boolean.class);
         
                        comp.setValid(__valid.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("valid", this._valid);
        }
      }
                        setValidatorProperty(comp, this._validator);
                  
            if (this._validatorMessage != null) {
        if (this._validatorMessage.isLiteralText()) {
          try {
                       
            java.lang.String __validatorMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._validatorMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setValidatorMessage(__validatorMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("validatorMessage", this._validatorMessage);
        }
      }
                         
            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);
View Full Code Here

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

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlFileUpload comp = (HtmlFileUpload) component;
            
            if (this._accept != null) {
        if (this._accept.isLiteralText()) {
          try {
                       
            java.lang.String __accept = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._accept.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAccept(__accept);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("accept", this._accept);
        }
      }
                        
            if (this._accesskey != null) {
        if (this._accesskey.isLiteralText()) {
          try {
                       
            java.lang.String __accesskey = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._accesskey.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAccesskey(__accesskey);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("accesskey", this._accesskey);
        }
      }
                        
            if (this._align != null) {
        if (this._align.isLiteralText()) {
          try {
                       
            java.lang.String __align = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._align.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAlign(__align);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("align", this._align);
        }
      }
                        
            if (this._alt != null) {
        if (this._alt.isLiteralText()) {
          try {
                       
            java.lang.String __alt = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._alt.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAlt(__alt);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("alt", this._alt);
        }
      }
                                  if(null != this._contentType && this._contentType.isLiteralText()){
          throw new IllegalArgumentException("Component org.jboss.seam.ui.FileUpload with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property contentType");
        }
      
            if (this._contentType != null) {
        if (this._contentType.isLiteralText()) {
          try {
                       
            java.lang.String __contentType = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._contentType.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setContentType(__contentType);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("contentType", this._contentType);
        }
      }
                        setConverterProperty(comp, this._converter);
                  
            if (this._converterMessage != null) {
        if (this._converterMessage.isLiteralText()) {
          try {
                       
            java.lang.String __converterMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._converterMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setConverterMessage(__converterMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("converterMessage", this._converterMessage);
        }
      }
                                 if(null != this._data && this._data.isLiteralText()){
          throw new IllegalArgumentException("Component org.jboss.seam.ui.FileUpload with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property data");
        }
      
            if (this._data != null) {
        if (this._data.isLiteralText()) {
          try {
                       
            java.lang.Object __data = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._data.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setData(__data);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("data", this._data);
        }
      }
                        
            if (this._disabled != null) {
        if (this._disabled.isLiteralText()) {
          try {
                       
            Boolean __disabled = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._disabled.getExpressionString(),
                      Boolean.class);
         
                        comp.setDisabled(__disabled.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("disabled", this._disabled);
        }
      }
                                  if(null != this._fileName && this._fileName.isLiteralText()){
          throw new IllegalArgumentException("Component org.jboss.seam.ui.FileUpload with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property fileName");
        }
      
            if (this._fileName != null) {
        if (this._fileName.isLiteralText()) {
          try {
                       
            java.lang.String __fileName = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileName.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileName(__fileName);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileName", this._fileName);
        }
      }
                                 if(null != this._fileSize && this._fileSize.isLiteralText()){
          throw new IllegalArgumentException("Component org.jboss.seam.ui.FileUpload with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property fileSize");
        }
      
            if (this._fileSize != null) {
        if (this._fileSize.isLiteralText()) {
          try {
                       
            java.lang.Integer __fileSize = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileSize.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setFileSize(__fileSize);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileSize", this._fileSize);
        }
      }
                         
            if (this._immediate != null) {
        if (this._immediate.isLiteralText()) {
          try {
                       
            Boolean __immediate = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._immediate.getExpressionString(),
                      Boolean.class);
         
                        comp.setImmediate(__immediate.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("immediate", this._immediate);
        }
      }
                        
            if (this._localContentType != null) {
        if (this._localContentType.isLiteralText()) {
          try {
                       
            java.lang.String __localContentType = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._localContentType.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLocalContentType(__localContentType);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("localContentType", this._localContentType);
        }
      }
                        
            if (this._localFileName != null) {
        if (this._localFileName.isLiteralText()) {
          try {
                       
            java.lang.String __localFileName = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._localFileName.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLocalFileName(__localFileName);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("localFileName", this._localFileName);
        }
      }
                        
            if (this._localFileSize != null) {
        if (this._localFileSize.isLiteralText()) {
          try {
                       
            java.lang.Integer __localFileSize = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._localFileSize.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setLocalFileSize(__localFileSize);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("localFileSize", this._localFileSize);
        }
      }
                        
            if (this._localInputStream != null) {
        if (this._localInputStream.isLiteralText()) {
          try {
                       
            java.io.InputStream __localInputStream = (java.io.InputStream) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._localInputStream.getExpressionString(),
                      java.io.InputStream.class);
         
                        comp.setLocalInputStream(__localInputStream);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("localInputStream", this._localInputStream);
        }
      }
                         
            if (this._localValueSet != null) {
        if (this._localValueSet.isLiteralText()) {
          try {
                       
            Boolean __localValueSet = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._localValueSet.getExpressionString(),
                      Boolean.class);
         
                        comp.setLocalValueSet(__localValueSet.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("localValueSet", this._localValueSet);
        }
      }
                        
            if (this._maxlength != null) {
        if (this._maxlength.isLiteralText()) {
          try {
                       
            Integer __maxlength = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._maxlength.getExpressionString(),
                      Integer.class);
         
                        comp.setMaxlength(__maxlength.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("maxlength", this._maxlength);
        }
      }
                        
            if (this._onblur != null) {
        if (this._onblur.isLiteralText()) {
          try {
                       
            java.lang.String __onblur = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onblur.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnblur(__onblur);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onblur", this._onblur);
        }
      }
                        
            if (this._onchange != null) {
        if (this._onchange.isLiteralText()) {
          try {
                       
            java.lang.String __onchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnchange(__onchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onchange", this._onchange);
        }
      }
                        
            if (this._onclick != null) {
        if (this._onclick.isLiteralText()) {
          try {
                       
            java.lang.String __onclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnclick(__onclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onclick", this._onclick);
        }
      }
                        
            if (this._ondblclick != null) {
        if (this._ondblclick.isLiteralText()) {
          try {
                       
            java.lang.String __ondblclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ondblclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOndblclick(__ondblclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ondblclick", this._ondblclick);
        }
      }
                        
            if (this._onfocus != null) {
        if (this._onfocus.isLiteralText()) {
          try {
                       
            java.lang.String __onfocus = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onfocus.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnfocus(__onfocus);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onfocus", this._onfocus);
        }
      }
                        
            if (this._onkeydown != null) {
        if (this._onkeydown.isLiteralText()) {
          try {
                       
            java.lang.String __onkeydown = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onkeydown.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnkeydown(__onkeydown);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onkeydown", this._onkeydown);
        }
      }
                        
            if (this._onkeypress != null) {
        if (this._onkeypress.isLiteralText()) {
          try {
                       
            java.lang.String __onkeypress = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onkeypress.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnkeypress(__onkeypress);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onkeypress", this._onkeypress);
        }
      }
                        
            if (this._onkeyup != null) {
        if (this._onkeyup.isLiteralText()) {
          try {
                       
            java.lang.String __onkeyup = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onkeyup.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnkeyup(__onkeyup);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onkeyup", this._onkeyup);
        }
      }
                        
            if (this._onmousedown != null) {
        if (this._onmousedown.isLiteralText()) {
          try {
                       
            java.lang.String __onmousedown = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmousedown.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmousedown(__onmousedown);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmousedown", this._onmousedown);
        }
      }
                        
            if (this._onmousemove != null) {
        if (this._onmousemove.isLiteralText()) {
          try {
                       
            java.lang.String __onmousemove = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmousemove.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmousemove(__onmousemove);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmousemove", this._onmousemove);
        }
      }
                        
            if (this._onmouseout != null) {
        if (this._onmouseout.isLiteralText()) {
          try {
                       
            java.lang.String __onmouseout = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmouseout.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmouseout(__onmouseout);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmouseout", this._onmouseout);
        }
      }
                        
            if (this._onmouseover != null) {
        if (this._onmouseover.isLiteralText()) {
          try {
                       
            java.lang.String __onmouseover = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmouseover.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmouseover(__onmouseover);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmouseover", this._onmouseover);
        }
      }
                        
            if (this._onmouseup != null) {
        if (this._onmouseup.isLiteralText()) {
          try {
                       
            java.lang.String __onmouseup = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmouseup.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmouseup(__onmouseup);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmouseup", this._onmouseup);
        }
      }
                        
            if (this._onselect != null) {
        if (this._onselect.isLiteralText()) {
          try {
                       
            java.lang.String __onselect = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onselect.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnselect(__onselect);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onselect", this._onselect);
        }
      }
                         
            if (this._required != null) {
        if (this._required.isLiteralText()) {
          try {
                       
            Boolean __required = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._required.getExpressionString(),
                      Boolean.class);
         
                        comp.setRequired(__required.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("required", this._required);
        }
      }
                        
            if (this._requiredMessage != null) {
        if (this._requiredMessage.isLiteralText()) {
          try {
                       
            java.lang.String __requiredMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._requiredMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRequiredMessage(__requiredMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("requiredMessage", this._requiredMessage);
        }
      }
                        
            if (this._size != null) {
        if (this._size.isLiteralText()) {
          try {
                       
            Integer __size = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._size.getExpressionString(),
                      Integer.class);
         
                        comp.setSize(__size.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("size", this._size);
        }
      }
                        
            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._tabindex != null) {
        if (this._tabindex.isLiteralText()) {
          try {
                       
            java.lang.String __tabindex = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._tabindex.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTabindex(__tabindex);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("tabindex", this._tabindex);
        }
      }
                        
            if (this._valid != null) {
        if (this._valid.isLiteralText()) {
          try {
                       
            Boolean __valid = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._valid.getExpressionString(),
                      Boolean.class);
         
                        comp.setValid(__valid.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("valid", this._valid);
        }
      }
                        setValidatorProperty(comp, this._validator);
                  
            if (this._validatorMessage != null) {
        if (this._validatorMessage.isLiteralText()) {
          try {
                       
            java.lang.String __validatorMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._validatorMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setValidatorMessage(__validatorMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("validatorMessage", this._validatorMessage);
        }
      }
                         
            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);
View Full Code Here

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

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlFileUpload comp = (HtmlFileUpload) component;
            
            if (this._accept != null) {
        if (this._accept.isLiteralText()) {
          try {
                       
            java.lang.String __accept = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._accept.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAccept(__accept);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("accept", this._accept);
        }
      }
                        
            if (this._accesskey != null) {
        if (this._accesskey.isLiteralText()) {
          try {
                       
            java.lang.String __accesskey = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._accesskey.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAccesskey(__accesskey);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("accesskey", this._accesskey);
        }
      }
                        
            if (this._align != null) {
        if (this._align.isLiteralText()) {
          try {
                       
            java.lang.String __align = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._align.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAlign(__align);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("align", this._align);
        }
      }
                        
            if (this._alt != null) {
        if (this._alt.isLiteralText()) {
          try {
                       
            java.lang.String __alt = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._alt.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAlt(__alt);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("alt", this._alt);
        }
      }
                                  if(null != this._contentType && this._contentType.isLiteralText()){
          throw new IllegalArgumentException("Component org.jboss.seam.ui.FileUpload with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property contentType");
        }
      
            if (this._contentType != null) {
        if (this._contentType.isLiteralText()) {
          try {
                       
            java.lang.String __contentType = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._contentType.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setContentType(__contentType);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("contentType", this._contentType);
        }
      }
                        setConverterProperty(comp, this._converter);
                  
            if (this._converterMessage != null) {
        if (this._converterMessage.isLiteralText()) {
          try {
                       
            java.lang.String __converterMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._converterMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setConverterMessage(__converterMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("converterMessage", this._converterMessage);
        }
      }
                                 if(null != this._data && this._data.isLiteralText()){
          throw new IllegalArgumentException("Component org.jboss.seam.ui.FileUpload with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property data");
        }
      
            if (this._data != null) {
        if (this._data.isLiteralText()) {
          try {
                       
            java.lang.Object __data = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._data.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setData(__data);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("data", this._data);
        }
      }
                        
            if (this._disabled != null) {
        if (this._disabled.isLiteralText()) {
          try {
                       
            Boolean __disabled = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._disabled.getExpressionString(),
                      Boolean.class);
         
                        comp.setDisabled(__disabled.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("disabled", this._disabled);
        }
      }
                                  if(null != this._fileName && this._fileName.isLiteralText()){
          throw new IllegalArgumentException("Component org.jboss.seam.ui.FileUpload with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property fileName");
        }
      
            if (this._fileName != null) {
        if (this._fileName.isLiteralText()) {
          try {
                       
            java.lang.String __fileName = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileName.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileName(__fileName);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileName", this._fileName);
        }
      }
                                 if(null != this._fileSize && this._fileSize.isLiteralText()){
          throw new IllegalArgumentException("Component org.jboss.seam.ui.FileUpload with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property fileSize");
        }
      
            if (this._fileSize != null) {
        if (this._fileSize.isLiteralText()) {
          try {
                       
            java.lang.Integer __fileSize = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileSize.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setFileSize(__fileSize);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileSize", this._fileSize);
        }
      }
                         
            if (this._immediate != null) {
        if (this._immediate.isLiteralText()) {
          try {
                       
            Boolean __immediate = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._immediate.getExpressionString(),
                      Boolean.class);
         
                        comp.setImmediate(__immediate.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("immediate", this._immediate);
        }
      }
                        
            if (this._localContentType != null) {
        if (this._localContentType.isLiteralText()) {
          try {
                       
            java.lang.String __localContentType = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._localContentType.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLocalContentType(__localContentType);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("localContentType", this._localContentType);
        }
      }
                        
            if (this._localFileName != null) {
        if (this._localFileName.isLiteralText()) {
          try {
                       
            java.lang.String __localFileName = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._localFileName.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLocalFileName(__localFileName);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("localFileName", this._localFileName);
        }
      }
                        
            if (this._localFileSize != null) {
        if (this._localFileSize.isLiteralText()) {
          try {
                       
            java.lang.Integer __localFileSize = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._localFileSize.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setLocalFileSize(__localFileSize);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("localFileSize", this._localFileSize);
        }
      }
                        
            if (this._localInputStream != null) {
        if (this._localInputStream.isLiteralText()) {
          try {
                       
            java.io.InputStream __localInputStream = (java.io.InputStream) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._localInputStream.getExpressionString(),
                      java.io.InputStream.class);
         
                        comp.setLocalInputStream(__localInputStream);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("localInputStream", this._localInputStream);
        }
      }
                         
            if (this._localValueSet != null) {
        if (this._localValueSet.isLiteralText()) {
          try {
                       
            Boolean __localValueSet = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._localValueSet.getExpressionString(),
                      Boolean.class);
         
                        comp.setLocalValueSet(__localValueSet.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("localValueSet", this._localValueSet);
        }
      }
                        
            if (this._maxlength != null) {
        if (this._maxlength.isLiteralText()) {
          try {
                       
            Integer __maxlength = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._maxlength.getExpressionString(),
                      Integer.class);
         
                        comp.setMaxlength(__maxlength.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("maxlength", this._maxlength);
        }
      }
                        
            if (this._onblur != null) {
        if (this._onblur.isLiteralText()) {
          try {
                       
            java.lang.String __onblur = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onblur.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnblur(__onblur);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onblur", this._onblur);
        }
      }
                        
            if (this._onchange != null) {
        if (this._onchange.isLiteralText()) {
          try {
                       
            java.lang.String __onchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnchange(__onchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onchange", this._onchange);
        }
      }
                        
            if (this._onclick != null) {
        if (this._onclick.isLiteralText()) {
          try {
                       
            java.lang.String __onclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnclick(__onclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onclick", this._onclick);
        }
      }
                        
            if (this._ondblclick != null) {
        if (this._ondblclick.isLiteralText()) {
          try {
                       
            java.lang.String __ondblclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ondblclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOndblclick(__ondblclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ondblclick", this._ondblclick);
        }
      }
                        
            if (this._onfocus != null) {
        if (this._onfocus.isLiteralText()) {
          try {
                       
            java.lang.String __onfocus = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onfocus.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnfocus(__onfocus);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onfocus", this._onfocus);
        }
      }
                        
            if (this._onkeydown != null) {
        if (this._onkeydown.isLiteralText()) {
          try {
                       
            java.lang.String __onkeydown = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onkeydown.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnkeydown(__onkeydown);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onkeydown", this._onkeydown);
        }
      }
                        
            if (this._onkeypress != null) {
        if (this._onkeypress.isLiteralText()) {
          try {
                       
            java.lang.String __onkeypress = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onkeypress.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnkeypress(__onkeypress);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onkeypress", this._onkeypress);
        }
      }
                        
            if (this._onkeyup != null) {
        if (this._onkeyup.isLiteralText()) {
          try {
                       
            java.lang.String __onkeyup = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onkeyup.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnkeyup(__onkeyup);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onkeyup", this._onkeyup);
        }
      }
                        
            if (this._onmousedown != null) {
        if (this._onmousedown.isLiteralText()) {
          try {
                       
            java.lang.String __onmousedown = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmousedown.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmousedown(__onmousedown);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmousedown", this._onmousedown);
        }
      }
                        
            if (this._onmousemove != null) {
        if (this._onmousemove.isLiteralText()) {
          try {
                       
            java.lang.String __onmousemove = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmousemove.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmousemove(__onmousemove);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmousemove", this._onmousemove);
        }
      }
                        
            if (this._onmouseout != null) {
        if (this._onmouseout.isLiteralText()) {
          try {
                       
            java.lang.String __onmouseout = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmouseout.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmouseout(__onmouseout);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmouseout", this._onmouseout);
        }
      }
                        
            if (this._onmouseover != null) {
        if (this._onmouseover.isLiteralText()) {
          try {
                       
            java.lang.String __onmouseover = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmouseover.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmouseover(__onmouseover);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmouseover", this._onmouseover);
        }
      }
                        
            if (this._onmouseup != null) {
        if (this._onmouseup.isLiteralText()) {
          try {
                       
            java.lang.String __onmouseup = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmouseup.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmouseup(__onmouseup);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmouseup", this._onmouseup);
        }
      }
                        
            if (this._onselect != null) {
        if (this._onselect.isLiteralText()) {
          try {
                       
            java.lang.String __onselect = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onselect.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnselect(__onselect);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onselect", this._onselect);
        }
      }
                         
            if (this._required != null) {
        if (this._required.isLiteralText()) {
          try {
                       
            Boolean __required = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._required.getExpressionString(),
                      Boolean.class);
         
                        comp.setRequired(__required.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("required", this._required);
        }
      }
                        
            if (this._requiredMessage != null) {
        if (this._requiredMessage.isLiteralText()) {
          try {
                       
            java.lang.String __requiredMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._requiredMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRequiredMessage(__requiredMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("requiredMessage", this._requiredMessage);
        }
      }
                        
            if (this._size != null) {
        if (this._size.isLiteralText()) {
          try {
                       
            Integer __size = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._size.getExpressionString(),
                      Integer.class);
         
                        comp.setSize(__size.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("size", this._size);
        }
      }
                        
            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._tabindex != null) {
        if (this._tabindex.isLiteralText()) {
          try {
                       
            java.lang.String __tabindex = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._tabindex.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTabindex(__tabindex);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("tabindex", this._tabindex);
        }
      }
                        
            if (this._valid != null) {
        if (this._valid.isLiteralText()) {
          try {
                       
            Boolean __valid = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._valid.getExpressionString(),
                      Boolean.class);
         
                        comp.setValid(__valid.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("valid", this._valid);
        }
      }
                        setValidatorProperty(comp, this._validator);
                  
            if (this._validatorMessage != null) {
        if (this._validatorMessage.isLiteralText()) {
          try {
                       
            java.lang.String __validatorMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._validatorMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setValidatorMessage(__validatorMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("validatorMessage", this._validatorMessage);
        }
      }
                         
            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);
View Full Code Here

Examples of org.richfaces.component.html.HtmlFileUpload

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlFileUpload comp = (HtmlFileUpload) component;
            
            if (this._acceptedTypes != null) {
        if (this._acceptedTypes.isLiteralText()) {
          try {
                       
            java.lang.String __acceptedTypes = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._acceptedTypes.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAcceptedTypes(__acceptedTypes);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("acceptedTypes", this._acceptedTypes);
        }
      }
                         
            if (this._accesskey != null) {
        if (this._accesskey.isLiteralText()) {
          try {
                       
            java.lang.String __accesskey = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._accesskey.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAccesskey(__accesskey);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("accesskey", this._accesskey);
        }
      }
                        
            if (this._addButtonClass != null) {
        if (this._addButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __addButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._addButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAddButtonClass(__addButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("addButtonClass", this._addButtonClass);
        }
      }
                        
            if (this._addButtonClassDisabled != null) {
        if (this._addButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __addButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._addButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAddButtonClassDisabled(__addButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("addButtonClassDisabled", this._addButtonClassDisabled);
        }
      }
                        
            if (this._addControlLabel != null) {
        if (this._addControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __addControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._addControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAddControlLabel(__addControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("addControlLabel", this._addControlLabel);
        }
      }
                        
            if (this._ajaxSingle != null) {
        if (this._ajaxSingle.isLiteralText()) {
          try {
                       
            Boolean __ajaxSingle = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ajaxSingle.getExpressionString(),
                      Boolean.class);
         
                        comp.setAjaxSingle(__ajaxSingle.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ajaxSingle", this._ajaxSingle);
        }
      }
                         
            if (this._allowFlash != null) {
        if (this._allowFlash.isLiteralText()) {
          try {
                       
            java.lang.String __allowFlash = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._allowFlash.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAllowFlash(__allowFlash);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("allowFlash", this._allowFlash);
        }
      }
                        
            if (this._alt != null) {
        if (this._alt.isLiteralText()) {
          try {
                       
            java.lang.String __alt = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._alt.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAlt(__alt);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("alt", this._alt);
        }
      }
                        
            if (this._autoclear != null) {
        if (this._autoclear.isLiteralText()) {
          try {
                       
            Boolean __autoclear = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._autoclear.getExpressionString(),
                      Boolean.class);
         
                        comp.setAutoclear(__autoclear.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("autoclear", this._autoclear);
        }
      }
                         
            if (this._cancelEntryControlLabel != null) {
        if (this._cancelEntryControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __cancelEntryControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cancelEntryControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCancelEntryControlLabel(__cancelEntryControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cancelEntryControlLabel", this._cancelEntryControlLabel);
        }
      }
                        
            if (this._cleanButtonClass != null) {
        if (this._cleanButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __cleanButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cleanButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCleanButtonClass(__cleanButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cleanButtonClass", this._cleanButtonClass);
        }
      }
                        
            if (this._cleanButtonClassDisabled != null) {
        if (this._cleanButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __cleanButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cleanButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCleanButtonClassDisabled(__cleanButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cleanButtonClassDisabled", this._cleanButtonClassDisabled);
        }
      }
                        
            if (this._clearAllControlLabel != null) {
        if (this._clearAllControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __clearAllControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._clearAllControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setClearAllControlLabel(__clearAllControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("clearAllControlLabel", this._clearAllControlLabel);
        }
      }
                        
            if (this._clearControlLabel != null) {
        if (this._clearControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __clearControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._clearControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setClearControlLabel(__clearControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("clearControlLabel", this._clearControlLabel);
        }
      }
                           
            if (this._disabled != null) {
        if (this._disabled.isLiteralText()) {
          try {
                       
            Boolean __disabled = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._disabled.getExpressionString(),
                      Boolean.class);
         
                        comp.setDisabled(__disabled.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("disabled", this._disabled);
        }
      }
                        
            if (this._doneLabel != null) {
        if (this._doneLabel.isLiteralText()) {
          try {
                       
            java.lang.String __doneLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._doneLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDoneLabel(__doneLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("doneLabel", this._doneLabel);
        }
      }
                         
            if (this._fileEntryClass != null) {
        if (this._fileEntryClass.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryClass(__fileEntryClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryClass", this._fileEntryClass);
        }
      }
                        
            if (this._fileEntryClassDisabled != null) {
        if (this._fileEntryClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryClassDisabled(__fileEntryClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryClassDisabled", this._fileEntryClassDisabled);
        }
      }
                        
            if (this._fileEntryControlClass != null) {
        if (this._fileEntryControlClass.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryControlClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryControlClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryControlClass(__fileEntryControlClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryControlClass", this._fileEntryControlClass);
        }
      }
                        
            if (this._fileEntryControlClassDisabled != null) {
        if (this._fileEntryControlClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryControlClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryControlClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryControlClassDisabled(__fileEntryControlClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryControlClassDisabled", this._fileEntryControlClassDisabled);
        }
      }
                          if(null != this._fileUploadListener){
             if (!this._fileUploadListener.isLiteralText())
             {
                MethodBinding mb = new MethodBindingMethodExpressionAdaptor(this._fileUploadListener);
                ((HtmlFileUpload)component).setFileUploadListener(mb);
             }
             else
             {
                getFacesContext().getExternalContext().log("Component " + component.getClientId(getFacesContext()) + " has invalid fileUploadListener value: " + this._fileUploadListener);
             }
      }
                    
            if (this._immediate != null) {
        if (this._immediate.isLiteralText()) {
          try {
                       
            Boolean __immediate = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._immediate.getExpressionString(),
                      Boolean.class);
         
                        comp.setImmediate(__immediate.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("immediate", this._immediate);
        }
      }
                        
            if (this._immediateUpload != null) {
        if (this._immediateUpload.isLiteralText()) {
          try {
                       
            Boolean __immediateUpload = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._immediateUpload.getExpressionString(),
                      Boolean.class);
         
                        comp.setImmediateUpload(__immediateUpload.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("immediateUpload", this._immediateUpload);
        }
      }
                        
            if (this._listHeight != null) {
        if (this._listHeight.isLiteralText()) {
          try {
                       
            java.lang.String __listHeight = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._listHeight.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setListHeight(__listHeight);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("listHeight", this._listHeight);
        }
      }
                        
            if (this._listWidth != null) {
        if (this._listWidth.isLiteralText()) {
          try {
                       
            java.lang.String __listWidth = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._listWidth.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setListWidth(__listWidth);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("listWidth", this._listWidth);
        }
      }
                              
            if (this._locale != null) {
        if (this._locale.isLiteralText()) {
          try {
                       
            java.lang.Object __locale = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._locale.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setLocale(__locale);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("locale", this._locale);
        }
      }
                        
            if (this._maxFilesQuantity != null) {
        if (this._maxFilesQuantity.isLiteralText()) {
          try {
                       
            java.lang.Integer __maxFilesQuantity = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._maxFilesQuantity.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setMaxFilesQuantity(__maxFilesQuantity);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("maxFilesQuantity", this._maxFilesQuantity);
        }
      }
                          
            if (this._noDuplicate != null) {
        if (this._noDuplicate.isLiteralText()) {
          try {
                       
            Boolean __noDuplicate = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._noDuplicate.getExpressionString(),
                      Boolean.class);
         
                        comp.setNoDuplicate(__noDuplicate.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("noDuplicate", this._noDuplicate);
        }
      }
                        
            if (this._onadd != null) {
        if (this._onadd.isLiteralText()) {
          try {
                       
            java.lang.String __onadd = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onadd.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnadd(__onadd);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onadd", this._onadd);
        }
      }
                        
            if (this._onblur != null) {
        if (this._onblur.isLiteralText()) {
          try {
                       
            java.lang.String __onblur = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onblur.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnblur(__onblur);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onblur", this._onblur);
        }
      }
                        
            if (this._onchange != null) {
        if (this._onchange.isLiteralText()) {
          try {
                       
            java.lang.String __onchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnchange(__onchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onchange", this._onchange);
        }
      }
                        
            if (this._onclear != null) {
        if (this._onclear.isLiteralText()) {
          try {
                       
            java.lang.String __onclear = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onclear.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnclear(__onclear);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onclear", this._onclear);
        }
      }
                          
            if (this._onerror != null) {
        if (this._onerror.isLiteralText()) {
          try {
                       
            java.lang.String __onerror = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onerror.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnerror(__onerror);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onerror", this._onerror);
        }
      }
                        
            if (this._onfileuploadcomplete != null) {
        if (this._onfileuploadcomplete.isLiteralText()) {
          try {
                       
            java.lang.String __onfileuploadcomplete = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onfileuploadcomplete.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnfileuploadcomplete(__onfileuploadcomplete);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onfileuploadcomplete", this._onfileuploadcomplete);
        }
      }
                        
            if (this._onfocus != null) {
        if (this._onfocus.isLiteralText()) {
          try {
                       
            java.lang.String __onfocus = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onfocus.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnfocus(__onfocus);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onfocus", this._onfocus);
        }
      }
                                
            if (this._onselect != null) {
        if (this._onselect.isLiteralText()) {
          try {
                       
            java.lang.String __onselect = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onselect.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnselect(__onselect);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onselect", this._onselect);
        }
      }
                        
            if (this._onsizerejected != null) {
        if (this._onsizerejected.isLiteralText()) {
          try {
                       
            java.lang.String __onsizerejected = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onsizerejected.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnsizerejected(__onsizerejected);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onsizerejected", this._onsizerejected);
        }
      }
                        
            if (this._ontyperejected != null) {
        if (this._ontyperejected.isLiteralText()) {
          try {
                       
            java.lang.String __ontyperejected = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ontyperejected.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOntyperejected(__ontyperejected);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ontyperejected", this._ontyperejected);
        }
      }
                        
            if (this._onupload != null) {
        if (this._onupload.isLiteralText()) {
          try {
                       
            java.lang.String __onupload = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onupload.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnupload(__onupload);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onupload", this._onupload);
        }
      }
                        
            if (this._onuploadcanceled != null) {
        if (this._onuploadcanceled.isLiteralText()) {
          try {
                       
            java.lang.String __onuploadcanceled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onuploadcanceled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnuploadcanceled(__onuploadcanceled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onuploadcanceled", this._onuploadcanceled);
        }
      }
                        
            if (this._onuploadcomplete != null) {
        if (this._onuploadcomplete.isLiteralText()) {
          try {
                       
            java.lang.String __onuploadcomplete = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onuploadcomplete.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnuploadcomplete(__onuploadcomplete);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onuploadcomplete", this._onuploadcomplete);
        }
      }
                         
            if (this._progressLabel != null) {
        if (this._progressLabel.isLiteralText()) {
          try {
                       
            java.lang.String __progressLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._progressLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setProgressLabel(__progressLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("progressLabel", this._progressLabel);
        }
      }
                         
            if (this._required != null) {
        if (this._required.isLiteralText()) {
          try {
                       
            Boolean __required = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._required.getExpressionString(),
                      Boolean.class);
         
                        comp.setRequired(__required.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("required", this._required);
        }
      }
                        
            if (this._requiredMessage != null) {
        if (this._requiredMessage.isLiteralText()) {
          try {
                       
            java.lang.String __requiredMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._requiredMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRequiredMessage(__requiredMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("requiredMessage", this._requiredMessage);
        }
      }
                         
            if (this._sizeErrorLabel != null) {
        if (this._sizeErrorLabel.isLiteralText()) {
          try {
                       
            java.lang.String __sizeErrorLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sizeErrorLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSizeErrorLabel(__sizeErrorLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sizeErrorLabel", this._sizeErrorLabel);
        }
      }
                        
            if (this._status != null) {
        if (this._status.isLiteralText()) {
          try {
                       
            java.lang.String __status = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._status.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStatus(__status);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("status", this._status);
        }
      }
                        
            if (this._stopButtonClass != null) {
        if (this._stopButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __stopButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopButtonClass(__stopButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopButtonClass", this._stopButtonClass);
        }
      }
                        
            if (this._stopButtonClassDisabled != null) {
        if (this._stopButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __stopButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopButtonClassDisabled(__stopButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopButtonClassDisabled", this._stopButtonClassDisabled);
        }
      }
                        
            if (this._stopControlLabel != null) {
        if (this._stopControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __stopControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopControlLabel(__stopControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopControlLabel", this._stopControlLabel);
        }
      }
                        
            if (this._stopEntryControlLabel != null) {
        if (this._stopEntryControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __stopEntryControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopEntryControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopEntryControlLabel(__stopEntryControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopEntryControlLabel", this._stopEntryControlLabel);
        }
      }
                          
            if (this._tabindex != null) {
        if (this._tabindex.isLiteralText()) {
          try {
                       
            java.lang.String __tabindex = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._tabindex.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTabindex(__tabindex);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("tabindex", this._tabindex);
        }
      }
                        
            if (this._transferErrorLabel != null) {
        if (this._transferErrorLabel.isLiteralText()) {
          try {
                       
            java.lang.String __transferErrorLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._transferErrorLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTransferErrorLabel(__transferErrorLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("transferErrorLabel", this._transferErrorLabel);
        }
      }
                        
            if (this._uploadButtonClass != null) {
        if (this._uploadButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __uploadButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadButtonClass(__uploadButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadButtonClass", this._uploadButtonClass);
        }
      }
                        
            if (this._uploadButtonClassDisabled != null) {
        if (this._uploadButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __uploadButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadButtonClassDisabled(__uploadButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadButtonClassDisabled", this._uploadButtonClassDisabled);
        }
      }
                        
            if (this._uploadControlLabel != null) {
        if (this._uploadControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __uploadControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadControlLabel(__uploadControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadControlLabel", this._uploadControlLabel);
        }
      }
                                 if(null != this._uploadData && this._uploadData.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.component.FileUpload with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property uploadData");
        }
      
            if (this._uploadData != null) {
        if (this._uploadData.isLiteralText()) {
          try {
                       
            java.lang.Object __uploadData = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadData.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setUploadData(__uploadData);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadData", this._uploadData);
        }
      }
                        
            if (this._uploadListClass != null) {
        if (this._uploadListClass.isLiteralText()) {
          try {
                       
            java.lang.String __uploadListClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadListClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadListClass(__uploadListClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadListClass", this._uploadListClass);
        }
      }
                        
            if (this._uploadListClassDisabled != null) {
        if (this._uploadListClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __uploadListClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadListClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadListClassDisabled(__uploadListClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadListClassDisabled", this._uploadListClassDisabled);
        }
      }
                         setValidatorProperty(comp, this._validator);
                  
            if (this._validatorMessage != null) {
        if (this._validatorMessage.isLiteralText()) {
          try {
                       
            java.lang.String __validatorMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._validatorMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setValidatorMessage(__validatorMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("validatorMessage", this._validatorMessage);
View Full Code Here

Examples of org.richfaces.component.html.HtmlFileUpload

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlFileUpload comp = (HtmlFileUpload) component;
            
            if (this._acceptedTypes != null) {
        if (this._acceptedTypes.isLiteralText()) {
          try {
                       
            java.lang.String __acceptedTypes = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._acceptedTypes.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAcceptedTypes(__acceptedTypes);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("acceptedTypes", this._acceptedTypes);
        }
      }
                         
            if (this._accesskey != null) {
        if (this._accesskey.isLiteralText()) {
          try {
                       
            java.lang.String __accesskey = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._accesskey.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAccesskey(__accesskey);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("accesskey", this._accesskey);
        }
      }
                        
            if (this._addButtonClass != null) {
        if (this._addButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __addButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._addButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAddButtonClass(__addButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("addButtonClass", this._addButtonClass);
        }
      }
                        
            if (this._addButtonClassDisabled != null) {
        if (this._addButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __addButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._addButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAddButtonClassDisabled(__addButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("addButtonClassDisabled", this._addButtonClassDisabled);
        }
      }
                        
            if (this._addControlLabel != null) {
        if (this._addControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __addControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._addControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAddControlLabel(__addControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("addControlLabel", this._addControlLabel);
        }
      }
                        
            if (this._ajaxSingle != null) {
        if (this._ajaxSingle.isLiteralText()) {
          try {
                       
            Boolean __ajaxSingle = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ajaxSingle.getExpressionString(),
                      Boolean.class);
         
                        comp.setAjaxSingle(__ajaxSingle.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ajaxSingle", this._ajaxSingle);
        }
      }
                         
            if (this._allowFlash != null) {
        if (this._allowFlash.isLiteralText()) {
          try {
                       
            java.lang.String __allowFlash = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._allowFlash.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAllowFlash(__allowFlash);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("allowFlash", this._allowFlash);
        }
      }
                        
            if (this._alt != null) {
        if (this._alt.isLiteralText()) {
          try {
                       
            java.lang.String __alt = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._alt.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAlt(__alt);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("alt", this._alt);
        }
      }
                        
            if (this._autoclear != null) {
        if (this._autoclear.isLiteralText()) {
          try {
                       
            Boolean __autoclear = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._autoclear.getExpressionString(),
                      Boolean.class);
         
                        comp.setAutoclear(__autoclear.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("autoclear", this._autoclear);
        }
      }
                         
            if (this._cancelEntryControlLabel != null) {
        if (this._cancelEntryControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __cancelEntryControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cancelEntryControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCancelEntryControlLabel(__cancelEntryControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cancelEntryControlLabel", this._cancelEntryControlLabel);
        }
      }
                        
            if (this._cleanButtonClass != null) {
        if (this._cleanButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __cleanButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cleanButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCleanButtonClass(__cleanButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cleanButtonClass", this._cleanButtonClass);
        }
      }
                        
            if (this._cleanButtonClassDisabled != null) {
        if (this._cleanButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __cleanButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cleanButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCleanButtonClassDisabled(__cleanButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cleanButtonClassDisabled", this._cleanButtonClassDisabled);
        }
      }
                        
            if (this._clearAllControlLabel != null) {
        if (this._clearAllControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __clearAllControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._clearAllControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setClearAllControlLabel(__clearAllControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("clearAllControlLabel", this._clearAllControlLabel);
        }
      }
                        
            if (this._clearControlLabel != null) {
        if (this._clearControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __clearControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._clearControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setClearControlLabel(__clearControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("clearControlLabel", this._clearControlLabel);
        }
      }
                           
            if (this._disabled != null) {
        if (this._disabled.isLiteralText()) {
          try {
                       
            Boolean __disabled = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._disabled.getExpressionString(),
                      Boolean.class);
         
                        comp.setDisabled(__disabled.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("disabled", this._disabled);
        }
      }
                        
            if (this._doneLabel != null) {
        if (this._doneLabel.isLiteralText()) {
          try {
                       
            java.lang.String __doneLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._doneLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDoneLabel(__doneLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("doneLabel", this._doneLabel);
        }
      }
                         
            if (this._fileEntryClass != null) {
        if (this._fileEntryClass.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryClass(__fileEntryClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryClass", this._fileEntryClass);
        }
      }
                        
            if (this._fileEntryClassDisabled != null) {
        if (this._fileEntryClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryClassDisabled(__fileEntryClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryClassDisabled", this._fileEntryClassDisabled);
        }
      }
                        
            if (this._fileEntryControlClass != null) {
        if (this._fileEntryControlClass.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryControlClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryControlClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryControlClass(__fileEntryControlClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryControlClass", this._fileEntryControlClass);
        }
      }
                        
            if (this._fileEntryControlClassDisabled != null) {
        if (this._fileEntryControlClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryControlClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryControlClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryControlClassDisabled(__fileEntryControlClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryControlClassDisabled", this._fileEntryControlClassDisabled);
        }
      }
                          if(null != this._fileUploadListener){
             if (!this._fileUploadListener.isLiteralText())
             {
                MethodBinding mb = new MethodBindingMethodExpressionAdaptor(this._fileUploadListener);
                ((HtmlFileUpload)component).setFileUploadListener(mb);
             }
             else
             {
                getFacesContext().getExternalContext().log("Component " + component.getClientId(getFacesContext()) + " has invalid fileUploadListener value: " + this._fileUploadListener);
             }
      }
                    
            if (this._immediate != null) {
        if (this._immediate.isLiteralText()) {
          try {
                       
            Boolean __immediate = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._immediate.getExpressionString(),
                      Boolean.class);
         
                        comp.setImmediate(__immediate.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("immediate", this._immediate);
        }
      }
                        
            if (this._immediateUpload != null) {
        if (this._immediateUpload.isLiteralText()) {
          try {
                       
            Boolean __immediateUpload = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._immediateUpload.getExpressionString(),
                      Boolean.class);
         
                        comp.setImmediateUpload(__immediateUpload.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("immediateUpload", this._immediateUpload);
        }
      }
                        
            if (this._listHeight != null) {
        if (this._listHeight.isLiteralText()) {
          try {
                       
            java.lang.String __listHeight = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._listHeight.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setListHeight(__listHeight);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("listHeight", this._listHeight);
        }
      }
                        
            if (this._listWidth != null) {
        if (this._listWidth.isLiteralText()) {
          try {
                       
            java.lang.String __listWidth = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._listWidth.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setListWidth(__listWidth);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("listWidth", this._listWidth);
        }
      }
                              
            if (this._locale != null) {
        if (this._locale.isLiteralText()) {
          try {
                       
            java.lang.Object __locale = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._locale.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setLocale(__locale);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("locale", this._locale);
        }
      }
                        
            if (this._maxFilesQuantity != null) {
        if (this._maxFilesQuantity.isLiteralText()) {
          try {
                       
            java.lang.Integer __maxFilesQuantity = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._maxFilesQuantity.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setMaxFilesQuantity(__maxFilesQuantity);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("maxFilesQuantity", this._maxFilesQuantity);
        }
      }
                          
            if (this._noDuplicate != null) {
        if (this._noDuplicate.isLiteralText()) {
          try {
                       
            Boolean __noDuplicate = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._noDuplicate.getExpressionString(),
                      Boolean.class);
         
                        comp.setNoDuplicate(__noDuplicate.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("noDuplicate", this._noDuplicate);
        }
      }
                        
            if (this._onadd != null) {
        if (this._onadd.isLiteralText()) {
          try {
                       
            java.lang.String __onadd = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onadd.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnadd(__onadd);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onadd", this._onadd);
        }
      }
                        
            if (this._onblur != null) {
        if (this._onblur.isLiteralText()) {
          try {
                       
            java.lang.String __onblur = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onblur.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnblur(__onblur);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onblur", this._onblur);
        }
      }
                        
            if (this._onchange != null) {
        if (this._onchange.isLiteralText()) {
          try {
                       
            java.lang.String __onchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnchange(__onchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onchange", this._onchange);
        }
      }
                        
            if (this._onclear != null) {
        if (this._onclear.isLiteralText()) {
          try {
                       
            java.lang.String __onclear = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onclear.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnclear(__onclear);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onclear", this._onclear);
        }
      }
                          
            if (this._onerror != null) {
        if (this._onerror.isLiteralText()) {
          try {
                       
            java.lang.String __onerror = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onerror.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnerror(__onerror);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onerror", this._onerror);
        }
      }
                        
            if (this._onfocus != null) {
        if (this._onfocus.isLiteralText()) {
          try {
                       
            java.lang.String __onfocus = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onfocus.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnfocus(__onfocus);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onfocus", this._onfocus);
        }
      }
                                
            if (this._onselect != null) {
        if (this._onselect.isLiteralText()) {
          try {
                       
            java.lang.String __onselect = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onselect.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnselect(__onselect);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onselect", this._onselect);
        }
      }
                        
            if (this._onsizerejected != null) {
        if (this._onsizerejected.isLiteralText()) {
          try {
                       
            java.lang.String __onsizerejected = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onsizerejected.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnsizerejected(__onsizerejected);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onsizerejected", this._onsizerejected);
        }
      }
                        
            if (this._ontyperejected != null) {
        if (this._ontyperejected.isLiteralText()) {
          try {
                       
            java.lang.String __ontyperejected = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ontyperejected.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOntyperejected(__ontyperejected);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ontyperejected", this._ontyperejected);
        }
      }
                        
            if (this._onupload != null) {
        if (this._onupload.isLiteralText()) {
          try {
                       
            java.lang.String __onupload = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onupload.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnupload(__onupload);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onupload", this._onupload);
        }
      }
                        
            if (this._onuploadcanceled != null) {
        if (this._onuploadcanceled.isLiteralText()) {
          try {
                       
            java.lang.String __onuploadcanceled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onuploadcanceled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnuploadcanceled(__onuploadcanceled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onuploadcanceled", this._onuploadcanceled);
        }
      }
                        
            if (this._onuploadcomplete != null) {
        if (this._onuploadcomplete.isLiteralText()) {
          try {
                       
            java.lang.String __onuploadcomplete = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onuploadcomplete.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnuploadcomplete(__onuploadcomplete);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onuploadcomplete", this._onuploadcomplete);
        }
      }
                         
            if (this._progressLabel != null) {
        if (this._progressLabel.isLiteralText()) {
          try {
                       
            java.lang.String __progressLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._progressLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setProgressLabel(__progressLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("progressLabel", this._progressLabel);
        }
      }
                         
            if (this._required != null) {
        if (this._required.isLiteralText()) {
          try {
                       
            Boolean __required = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._required.getExpressionString(),
                      Boolean.class);
         
                        comp.setRequired(__required.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("required", this._required);
        }
      }
                        
            if (this._requiredMessage != null) {
        if (this._requiredMessage.isLiteralText()) {
          try {
                       
            java.lang.String __requiredMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._requiredMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRequiredMessage(__requiredMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("requiredMessage", this._requiredMessage);
        }
      }
                         
            if (this._sizeErrorLabel != null) {
        if (this._sizeErrorLabel.isLiteralText()) {
          try {
                       
            java.lang.String __sizeErrorLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sizeErrorLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSizeErrorLabel(__sizeErrorLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sizeErrorLabel", this._sizeErrorLabel);
        }
      }
                        
            if (this._status != null) {
        if (this._status.isLiteralText()) {
          try {
                       
            java.lang.String __status = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._status.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStatus(__status);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("status", this._status);
        }
      }
                        
            if (this._stopButtonClass != null) {
        if (this._stopButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __stopButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopButtonClass(__stopButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopButtonClass", this._stopButtonClass);
        }
      }
                        
            if (this._stopButtonClassDisabled != null) {
        if (this._stopButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __stopButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopButtonClassDisabled(__stopButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopButtonClassDisabled", this._stopButtonClassDisabled);
        }
      }
                        
            if (this._stopControlLabel != null) {
        if (this._stopControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __stopControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopControlLabel(__stopControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopControlLabel", this._stopControlLabel);
        }
      }
                        
            if (this._stopEntryControlLabel != null) {
        if (this._stopEntryControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __stopEntryControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopEntryControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopEntryControlLabel(__stopEntryControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopEntryControlLabel", this._stopEntryControlLabel);
        }
      }
                          
            if (this._tabindex != null) {
        if (this._tabindex.isLiteralText()) {
          try {
                       
            java.lang.String __tabindex = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._tabindex.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTabindex(__tabindex);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("tabindex", this._tabindex);
        }
      }
                        
            if (this._transferErrorLabel != null) {
        if (this._transferErrorLabel.isLiteralText()) {
          try {
                       
            java.lang.String __transferErrorLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._transferErrorLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTransferErrorLabel(__transferErrorLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("transferErrorLabel", this._transferErrorLabel);
        }
      }
                        
            if (this._uploadButtonClass != null) {
        if (this._uploadButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __uploadButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadButtonClass(__uploadButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadButtonClass", this._uploadButtonClass);
        }
      }
                        
            if (this._uploadButtonClassDisabled != null) {
        if (this._uploadButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __uploadButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadButtonClassDisabled(__uploadButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadButtonClassDisabled", this._uploadButtonClassDisabled);
        }
      }
                        
            if (this._uploadControlLabel != null) {
        if (this._uploadControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __uploadControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadControlLabel(__uploadControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadControlLabel", this._uploadControlLabel);
        }
      }
                                 if(null != this._uploadData && this._uploadData.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.component.FileUpload with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property uploadData");
        }
      
            if (this._uploadData != null) {
        if (this._uploadData.isLiteralText()) {
          try {
                       
            java.lang.Object __uploadData = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadData.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setUploadData(__uploadData);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadData", this._uploadData);
        }
      }
                        
            if (this._uploadListClass != null) {
        if (this._uploadListClass.isLiteralText()) {
          try {
                       
            java.lang.String __uploadListClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadListClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadListClass(__uploadListClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadListClass", this._uploadListClass);
        }
      }
                        
            if (this._uploadListClassDisabled != null) {
        if (this._uploadListClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __uploadListClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadListClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadListClassDisabled(__uploadListClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadListClassDisabled", this._uploadListClassDisabled);
        }
      }
                         setValidatorProperty(comp, this._validator);
                  
            if (this._validatorMessage != null) {
        if (this._validatorMessage.isLiteralText()) {
          try {
                       
            java.lang.String __validatorMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._validatorMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setValidatorMessage(__validatorMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("validatorMessage", this._validatorMessage);
View Full Code Here

Examples of org.richfaces.component.html.HtmlFileUpload

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlFileUpload comp = (HtmlFileUpload) component;
            
            if (this._acceptedTypes != null) {
        if (this._acceptedTypes.isLiteralText()) {
          try {
                       
            java.lang.String __acceptedTypes = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._acceptedTypes.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAcceptedTypes(__acceptedTypes);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("acceptedTypes", this._acceptedTypes);
        }
      }
                         
            if (this._accesskey != null) {
        if (this._accesskey.isLiteralText()) {
          try {
                       
            java.lang.String __accesskey = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._accesskey.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAccesskey(__accesskey);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("accesskey", this._accesskey);
        }
      }
                        
            if (this._addButtonClass != null) {
        if (this._addButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __addButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._addButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAddButtonClass(__addButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("addButtonClass", this._addButtonClass);
        }
      }
                        
            if (this._addButtonClassDisabled != null) {
        if (this._addButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __addButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._addButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAddButtonClassDisabled(__addButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("addButtonClassDisabled", this._addButtonClassDisabled);
        }
      }
                        
            if (this._addControlLabel != null) {
        if (this._addControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __addControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._addControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAddControlLabel(__addControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("addControlLabel", this._addControlLabel);
        }
      }
                        
            if (this._ajaxSingle != null) {
        if (this._ajaxSingle.isLiteralText()) {
          try {
                       
            Boolean __ajaxSingle = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ajaxSingle.getExpressionString(),
                      Boolean.class);
         
                        comp.setAjaxSingle(__ajaxSingle.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ajaxSingle", this._ajaxSingle);
        }
      }
                         
            if (this._allowFlash != null) {
        if (this._allowFlash.isLiteralText()) {
          try {
                       
            java.lang.String __allowFlash = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._allowFlash.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAllowFlash(__allowFlash);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("allowFlash", this._allowFlash);
        }
      }
                        
            if (this._alt != null) {
        if (this._alt.isLiteralText()) {
          try {
                       
            java.lang.String __alt = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._alt.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAlt(__alt);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("alt", this._alt);
        }
      }
                        
            if (this._autoclear != null) {
        if (this._autoclear.isLiteralText()) {
          try {
                       
            Boolean __autoclear = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._autoclear.getExpressionString(),
                      Boolean.class);
         
                        comp.setAutoclear(__autoclear.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("autoclear", this._autoclear);
        }
      }
                         
            if (this._cancelEntryControlLabel != null) {
        if (this._cancelEntryControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __cancelEntryControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cancelEntryControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCancelEntryControlLabel(__cancelEntryControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cancelEntryControlLabel", this._cancelEntryControlLabel);
        }
      }
                        
            if (this._cleanButtonClass != null) {
        if (this._cleanButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __cleanButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cleanButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCleanButtonClass(__cleanButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cleanButtonClass", this._cleanButtonClass);
        }
      }
                        
            if (this._cleanButtonClassDisabled != null) {
        if (this._cleanButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __cleanButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cleanButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCleanButtonClassDisabled(__cleanButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cleanButtonClassDisabled", this._cleanButtonClassDisabled);
        }
      }
                        
            if (this._clearAllControlLabel != null) {
        if (this._clearAllControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __clearAllControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._clearAllControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setClearAllControlLabel(__clearAllControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("clearAllControlLabel", this._clearAllControlLabel);
        }
      }
                        
            if (this._clearControlLabel != null) {
        if (this._clearControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __clearControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._clearControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setClearControlLabel(__clearControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("clearControlLabel", this._clearControlLabel);
        }
      }
                           
            if (this._disabled != null) {
        if (this._disabled.isLiteralText()) {
          try {
                       
            Boolean __disabled = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._disabled.getExpressionString(),
                      Boolean.class);
         
                        comp.setDisabled(__disabled.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("disabled", this._disabled);
        }
      }
                        
            if (this._doneLabel != null) {
        if (this._doneLabel.isLiteralText()) {
          try {
                       
            java.lang.String __doneLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._doneLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDoneLabel(__doneLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("doneLabel", this._doneLabel);
        }
      }
                        
            if (this._doneLabelClass != null) {
        if (this._doneLabelClass.isLiteralText()) {
          try {
                       
            java.lang.String __doneLabelClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._doneLabelClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDoneLabelClass(__doneLabelClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("doneLabelClass", this._doneLabelClass);
        }
      }
                        
            if (this._entryCancelLabelClass != null) {
        if (this._entryCancelLabelClass.isLiteralText()) {
          try {
                       
            java.lang.String __entryCancelLabelClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._entryCancelLabelClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setEntryCancelLabelClass(__entryCancelLabelClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("entryCancelLabelClass", this._entryCancelLabelClass);
        }
      }
                        
            if (this._entryClearLabelClass != null) {
        if (this._entryClearLabelClass.isLiteralText()) {
          try {
                       
            java.lang.String __entryClearLabelClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._entryClearLabelClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setEntryClearLabelClass(__entryClearLabelClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("entryClearLabelClass", this._entryClearLabelClass);
        }
      }
                        
            if (this._entryStopLabelClass != null) {
        if (this._entryStopLabelClass.isLiteralText()) {
          try {
                       
            java.lang.String __entryStopLabelClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._entryStopLabelClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setEntryStopLabelClass(__entryStopLabelClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("entryStopLabelClass", this._entryStopLabelClass);
        }
      }
                         
            if (this._fileEntryClass != null) {
        if (this._fileEntryClass.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryClass(__fileEntryClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryClass", this._fileEntryClass);
        }
      }
                        
            if (this._fileEntryClassDisabled != null) {
        if (this._fileEntryClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryClassDisabled(__fileEntryClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryClassDisabled", this._fileEntryClassDisabled);
        }
      }
                        
            if (this._fileEntryControlClass != null) {
        if (this._fileEntryControlClass.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryControlClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryControlClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryControlClass(__fileEntryControlClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryControlClass", this._fileEntryControlClass);
        }
      }
                        
            if (this._fileEntryControlClassDisabled != null) {
        if (this._fileEntryControlClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryControlClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryControlClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryControlClassDisabled(__fileEntryControlClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryControlClassDisabled", this._fileEntryControlClassDisabled);
        }
      }
                          if(null != this._fileUploadListener){
             if (!this._fileUploadListener.isLiteralText())
             {
                MethodBinding mb = new MethodBindingMethodExpressionAdaptor(this._fileUploadListener);
                ((HtmlFileUpload)component).setFileUploadListener(mb);
             }
             else
             {
                getFacesContext().getExternalContext().log("Component " + component.getClientId(getFacesContext()) + " has invalid fileUploadListener value: " + this._fileUploadListener);
             }
      }
                    
            if (this._immediate != null) {
        if (this._immediate.isLiteralText()) {
          try {
                       
            Boolean __immediate = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._immediate.getExpressionString(),
                      Boolean.class);
         
                        comp.setImmediate(__immediate.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("immediate", this._immediate);
        }
      }
                        
            if (this._immediateUpload != null) {
        if (this._immediateUpload.isLiteralText()) {
          try {
                       
            Boolean __immediateUpload = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._immediateUpload.getExpressionString(),
                      Boolean.class);
         
                        comp.setImmediateUpload(__immediateUpload.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("immediateUpload", this._immediateUpload);
        }
      }
                        
            if (this._listHeight != null) {
        if (this._listHeight.isLiteralText()) {
          try {
                       
            java.lang.String __listHeight = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._listHeight.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setListHeight(__listHeight);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("listHeight", this._listHeight);
        }
      }
                        
            if (this._listWidth != null) {
        if (this._listWidth.isLiteralText()) {
          try {
                       
            java.lang.String __listWidth = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._listWidth.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setListWidth(__listWidth);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("listWidth", this._listWidth);
        }
      }
                              
            if (this._locale != null) {
        if (this._locale.isLiteralText()) {
          try {
                       
            java.lang.Object __locale = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._locale.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setLocale(__locale);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("locale", this._locale);
        }
      }
                        
            if (this._maxFilesQuantity != null) {
        if (this._maxFilesQuantity.isLiteralText()) {
          try {
                       
            java.lang.Integer __maxFilesQuantity = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._maxFilesQuantity.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setMaxFilesQuantity(__maxFilesQuantity);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("maxFilesQuantity", this._maxFilesQuantity);
        }
      }
                          
            if (this._noDuplicate != null) {
        if (this._noDuplicate.isLiteralText()) {
          try {
                       
            Boolean __noDuplicate = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._noDuplicate.getExpressionString(),
                      Boolean.class);
         
                        comp.setNoDuplicate(__noDuplicate.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("noDuplicate", this._noDuplicate);
        }
      }
                        
            if (this._onadd != null) {
        if (this._onadd.isLiteralText()) {
          try {
                       
            java.lang.String __onadd = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onadd.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnadd(__onadd);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onadd", this._onadd);
        }
      }
                        
            if (this._onblur != null) {
        if (this._onblur.isLiteralText()) {
          try {
                       
            java.lang.String __onblur = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onblur.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnblur(__onblur);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onblur", this._onblur);
        }
      }
                        
            if (this._onchange != null) {
        if (this._onchange.isLiteralText()) {
          try {
                       
            java.lang.String __onchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnchange(__onchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onchange", this._onchange);
        }
      }
                        
            if (this._onclear != null) {
        if (this._onclear.isLiteralText()) {
          try {
                       
            java.lang.String __onclear = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onclear.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnclear(__onclear);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onclear", this._onclear);
        }
      }
                          
            if (this._onerror != null) {
        if (this._onerror.isLiteralText()) {
          try {
                       
            java.lang.String __onerror = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onerror.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnerror(__onerror);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onerror", this._onerror);
        }
      }
                        
            if (this._onfileuploadcomplete != null) {
        if (this._onfileuploadcomplete.isLiteralText()) {
          try {
                       
            java.lang.String __onfileuploadcomplete = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onfileuploadcomplete.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnfileuploadcomplete(__onfileuploadcomplete);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onfileuploadcomplete", this._onfileuploadcomplete);
        }
      }
                        
            if (this._onfocus != null) {
        if (this._onfocus.isLiteralText()) {
          try {
                       
            java.lang.String __onfocus = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onfocus.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnfocus(__onfocus);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onfocus", this._onfocus);
        }
      }
                                
            if (this._onselect != null) {
        if (this._onselect.isLiteralText()) {
          try {
                       
            java.lang.String __onselect = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onselect.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnselect(__onselect);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onselect", this._onselect);
        }
      }
                        
            if (this._onsizerejected != null) {
        if (this._onsizerejected.isLiteralText()) {
          try {
                       
            java.lang.String __onsizerejected = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onsizerejected.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnsizerejected(__onsizerejected);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onsizerejected", this._onsizerejected);
        }
      }
                        
            if (this._ontyperejected != null) {
        if (this._ontyperejected.isLiteralText()) {
          try {
                       
            java.lang.String __ontyperejected = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ontyperejected.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOntyperejected(__ontyperejected);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ontyperejected", this._ontyperejected);
        }
      }
                        
            if (this._onupload != null) {
        if (this._onupload.isLiteralText()) {
          try {
                       
            java.lang.String __onupload = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onupload.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnupload(__onupload);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onupload", this._onupload);
        }
      }
                        
            if (this._onuploadcanceled != null) {
        if (this._onuploadcanceled.isLiteralText()) {
          try {
                       
            java.lang.String __onuploadcanceled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onuploadcanceled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnuploadcanceled(__onuploadcanceled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onuploadcanceled", this._onuploadcanceled);
        }
      }
                        
            if (this._onuploadcomplete != null) {
        if (this._onuploadcomplete.isLiteralText()) {
          try {
                       
            java.lang.String __onuploadcomplete = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onuploadcomplete.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnuploadcomplete(__onuploadcomplete);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onuploadcomplete", this._onuploadcomplete);
        }
      }
                         
            if (this._progressLabel != null) {
        if (this._progressLabel.isLiteralText()) {
          try {
                       
            java.lang.String __progressLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._progressLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setProgressLabel(__progressLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("progressLabel", this._progressLabel);
        }
      }
                        
            if (this._progressLabelClass != null) {
        if (this._progressLabelClass.isLiteralText()) {
          try {
                       
            java.lang.String __progressLabelClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._progressLabelClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setProgressLabelClass(__progressLabelClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("progressLabelClass", this._progressLabelClass);
        }
      }
                         
            if (this._required != null) {
        if (this._required.isLiteralText()) {
          try {
                       
            Boolean __required = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._required.getExpressionString(),
                      Boolean.class);
         
                        comp.setRequired(__required.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("required", this._required);
        }
      }
                        
            if (this._requiredMessage != null) {
        if (this._requiredMessage.isLiteralText()) {
          try {
                       
            java.lang.String __requiredMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._requiredMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRequiredMessage(__requiredMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("requiredMessage", this._requiredMessage);
        }
      }
                         
            if (this._sizeErrorLabel != null) {
        if (this._sizeErrorLabel.isLiteralText()) {
          try {
                       
            java.lang.String __sizeErrorLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sizeErrorLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSizeErrorLabel(__sizeErrorLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sizeErrorLabel", this._sizeErrorLabel);
        }
      }
                        
            if (this._sizeErrorLabelClass != null) {
        if (this._sizeErrorLabelClass.isLiteralText()) {
          try {
                       
            java.lang.String __sizeErrorLabelClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sizeErrorLabelClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSizeErrorLabelClass(__sizeErrorLabelClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sizeErrorLabelClass", this._sizeErrorLabelClass);
        }
      }
                        
            if (this._status != null) {
        if (this._status.isLiteralText()) {
          try {
                       
            java.lang.String __status = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._status.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStatus(__status);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("status", this._status);
        }
      }
                        
            if (this._stopButtonClass != null) {
        if (this._stopButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __stopButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopButtonClass(__stopButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopButtonClass", this._stopButtonClass);
        }
      }
                        
            if (this._stopButtonClassDisabled != null) {
        if (this._stopButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __stopButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopButtonClassDisabled(__stopButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopButtonClassDisabled", this._stopButtonClassDisabled);
        }
      }
                        
            if (this._stopControlLabel != null) {
        if (this._stopControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __stopControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopControlLabel(__stopControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopControlLabel", this._stopControlLabel);
        }
      }
                        
            if (this._stopEntryControlLabel != null) {
        if (this._stopEntryControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __stopEntryControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopEntryControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopEntryControlLabel(__stopEntryControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopEntryControlLabel", this._stopEntryControlLabel);
        }
      }
                          
            if (this._tabindex != null) {
        if (this._tabindex.isLiteralText()) {
          try {
                       
            java.lang.String __tabindex = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._tabindex.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTabindex(__tabindex);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("tabindex", this._tabindex);
        }
      }
                        
            if (this._transferErrorLabel != null) {
        if (this._transferErrorLabel.isLiteralText()) {
          try {
                       
            java.lang.String __transferErrorLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._transferErrorLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTransferErrorLabel(__transferErrorLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("transferErrorLabel", this._transferErrorLabel);
        }
      }
                        
            if (this._transferErrorLabelClass != null) {
        if (this._transferErrorLabelClass.isLiteralText()) {
          try {
                       
            java.lang.String __transferErrorLabelClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._transferErrorLabelClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTransferErrorLabelClass(__transferErrorLabelClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("transferErrorLabelClass", this._transferErrorLabelClass);
        }
      }
                        
            if (this._uploadButtonClass != null) {
        if (this._uploadButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __uploadButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadButtonClass(__uploadButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadButtonClass", this._uploadButtonClass);
        }
      }
                        
            if (this._uploadButtonClassDisabled != null) {
        if (this._uploadButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __uploadButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadButtonClassDisabled(__uploadButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadButtonClassDisabled", this._uploadButtonClassDisabled);
        }
      }
                        
            if (this._uploadControlLabel != null) {
        if (this._uploadControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __uploadControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadControlLabel(__uploadControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadControlLabel", this._uploadControlLabel);
        }
      }
                                 if(null != this._uploadData && this._uploadData.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.component.FileUpload with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property uploadData");
        }
      
            if (this._uploadData != null) {
        if (this._uploadData.isLiteralText()) {
          try {
                       
            java.lang.Object __uploadData = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadData.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setUploadData(__uploadData);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadData", this._uploadData);
        }
      }
                        
            if (this._uploadListClass != null) {
        if (this._uploadListClass.isLiteralText()) {
          try {
                       
            java.lang.String __uploadListClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadListClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadListClass(__uploadListClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadListClass", this._uploadListClass);
        }
      }
                        
            if (this._uploadListClassDisabled != null) {
        if (this._uploadListClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __uploadListClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadListClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadListClassDisabled(__uploadListClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadListClassDisabled", this._uploadListClassDisabled);
        }
      }
                         setValidatorProperty(comp, this._validator);
                  
            if (this._validatorMessage != null) {
        if (this._validatorMessage.isLiteralText()) {
          try {
                       
            java.lang.String __validatorMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._validatorMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setValidatorMessage(__validatorMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("validatorMessage", this._validatorMessage);
View Full Code Here

Examples of org.richfaces.component.html.HtmlFileUpload

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlFileUpload comp = (HtmlFileUpload) component;
            
            if (this._acceptedTypes != null) {
        if (this._acceptedTypes.isLiteralText()) {
          try {
                       
            java.lang.String __acceptedTypes = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._acceptedTypes.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAcceptedTypes(__acceptedTypes);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("acceptedTypes", this._acceptedTypes);
        }
      }
                         
            if (this._accesskey != null) {
        if (this._accesskey.isLiteralText()) {
          try {
                       
            java.lang.String __accesskey = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._accesskey.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAccesskey(__accesskey);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("accesskey", this._accesskey);
        }
      }
                        
            if (this._addButtonClass != null) {
        if (this._addButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __addButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._addButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAddButtonClass(__addButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("addButtonClass", this._addButtonClass);
        }
      }
                        
            if (this._addButtonClassDisabled != null) {
        if (this._addButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __addButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._addButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAddButtonClassDisabled(__addButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("addButtonClassDisabled", this._addButtonClassDisabled);
        }
      }
                        
            if (this._addControlLabel != null) {
        if (this._addControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __addControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._addControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAddControlLabel(__addControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("addControlLabel", this._addControlLabel);
        }
      }
                        
            if (this._ajaxSingle != null) {
        if (this._ajaxSingle.isLiteralText()) {
          try {
                       
            Boolean __ajaxSingle = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ajaxSingle.getExpressionString(),
                      Boolean.class);
         
                        comp.setAjaxSingle(__ajaxSingle.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ajaxSingle", this._ajaxSingle);
        }
      }
                         
            if (this._allowFlash != null) {
        if (this._allowFlash.isLiteralText()) {
          try {
                       
            java.lang.String __allowFlash = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._allowFlash.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAllowFlash(__allowFlash);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("allowFlash", this._allowFlash);
        }
      }
                        
            if (this._alt != null) {
        if (this._alt.isLiteralText()) {
          try {
                       
            java.lang.String __alt = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._alt.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAlt(__alt);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("alt", this._alt);
        }
      }
                        
            if (this._autoclear != null) {
        if (this._autoclear.isLiteralText()) {
          try {
                       
            Boolean __autoclear = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._autoclear.getExpressionString(),
                      Boolean.class);
         
                        comp.setAutoclear(__autoclear.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("autoclear", this._autoclear);
        }
      }
                         
            if (this._cancelEntryControlLabel != null) {
        if (this._cancelEntryControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __cancelEntryControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cancelEntryControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCancelEntryControlLabel(__cancelEntryControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cancelEntryControlLabel", this._cancelEntryControlLabel);
        }
      }
                        
            if (this._cleanButtonClass != null) {
        if (this._cleanButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __cleanButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cleanButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCleanButtonClass(__cleanButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cleanButtonClass", this._cleanButtonClass);
        }
      }
                        
            if (this._cleanButtonClassDisabled != null) {
        if (this._cleanButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __cleanButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cleanButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCleanButtonClassDisabled(__cleanButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cleanButtonClassDisabled", this._cleanButtonClassDisabled);
        }
      }
                        
            if (this._clearAllControlLabel != null) {
        if (this._clearAllControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __clearAllControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._clearAllControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setClearAllControlLabel(__clearAllControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("clearAllControlLabel", this._clearAllControlLabel);
        }
      }
                        
            if (this._clearControlLabel != null) {
        if (this._clearControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __clearControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._clearControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setClearControlLabel(__clearControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("clearControlLabel", this._clearControlLabel);
        }
      }
                           
            if (this._disabled != null) {
        if (this._disabled.isLiteralText()) {
          try {
                       
            Boolean __disabled = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._disabled.getExpressionString(),
                      Boolean.class);
         
                        comp.setDisabled(__disabled.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("disabled", this._disabled);
        }
      }
                        
            if (this._doneLabel != null) {
        if (this._doneLabel.isLiteralText()) {
          try {
                       
            java.lang.String __doneLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._doneLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDoneLabel(__doneLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("doneLabel", this._doneLabel);
        }
      }
                         
            if (this._fileEntryClass != null) {
        if (this._fileEntryClass.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryClass(__fileEntryClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryClass", this._fileEntryClass);
        }
      }
                        
            if (this._fileEntryClassDisabled != null) {
        if (this._fileEntryClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryClassDisabled(__fileEntryClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryClassDisabled", this._fileEntryClassDisabled);
        }
      }
                        
            if (this._fileEntryControlClass != null) {
        if (this._fileEntryControlClass.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryControlClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryControlClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryControlClass(__fileEntryControlClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryControlClass", this._fileEntryControlClass);
        }
      }
                        
            if (this._fileEntryControlClassDisabled != null) {
        if (this._fileEntryControlClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryControlClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryControlClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryControlClassDisabled(__fileEntryControlClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryControlClassDisabled", this._fileEntryControlClassDisabled);
        }
      }
                          if(null != this._fileUploadListener){
             if (!this._fileUploadListener.isLiteralText())
             {
                MethodBinding mb = new MethodBindingMethodExpressionAdaptor(this._fileUploadListener);
                ((HtmlFileUpload)component).setFileUploadListener(mb);
             }
             else
             {
                getFacesContext().getExternalContext().log("Component " + component.getClientId(getFacesContext()) + " has invalid fileUploadListener value: " + this._fileUploadListener);
             }
      }
                    
            if (this._immediate != null) {
        if (this._immediate.isLiteralText()) {
          try {
                       
            Boolean __immediate = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._immediate.getExpressionString(),
                      Boolean.class);
         
                        comp.setImmediate(__immediate.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("immediate", this._immediate);
        }
      }
                        
            if (this._immediateUpload != null) {
        if (this._immediateUpload.isLiteralText()) {
          try {
                       
            Boolean __immediateUpload = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._immediateUpload.getExpressionString(),
                      Boolean.class);
         
                        comp.setImmediateUpload(__immediateUpload.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("immediateUpload", this._immediateUpload);
        }
      }
                        
            if (this._listHeight != null) {
        if (this._listHeight.isLiteralText()) {
          try {
                       
            java.lang.String __listHeight = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._listHeight.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setListHeight(__listHeight);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("listHeight", this._listHeight);
        }
      }
                        
            if (this._listWidth != null) {
        if (this._listWidth.isLiteralText()) {
          try {
                       
            java.lang.String __listWidth = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._listWidth.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setListWidth(__listWidth);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("listWidth", this._listWidth);
        }
      }
                              
            if (this._locale != null) {
        if (this._locale.isLiteralText()) {
          try {
                       
            java.lang.Object __locale = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._locale.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setLocale(__locale);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("locale", this._locale);
        }
      }
                        
            if (this._maxFilesQuantity != null) {
        if (this._maxFilesQuantity.isLiteralText()) {
          try {
                       
            java.lang.Integer __maxFilesQuantity = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._maxFilesQuantity.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setMaxFilesQuantity(__maxFilesQuantity);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("maxFilesQuantity", this._maxFilesQuantity);
        }
      }
                          
            if (this._noDuplicate != null) {
        if (this._noDuplicate.isLiteralText()) {
          try {
                       
            Boolean __noDuplicate = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._noDuplicate.getExpressionString(),
                      Boolean.class);
         
                        comp.setNoDuplicate(__noDuplicate.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("noDuplicate", this._noDuplicate);
        }
      }
                        
            if (this._onadd != null) {
        if (this._onadd.isLiteralText()) {
          try {
                       
            java.lang.String __onadd = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onadd.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnadd(__onadd);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onadd", this._onadd);
        }
      }
                        
            if (this._onblur != null) {
        if (this._onblur.isLiteralText()) {
          try {
                       
            java.lang.String __onblur = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onblur.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnblur(__onblur);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onblur", this._onblur);
        }
      }
                        
            if (this._onchange != null) {
        if (this._onchange.isLiteralText()) {
          try {
                       
            java.lang.String __onchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnchange(__onchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onchange", this._onchange);
        }
      }
                        
            if (this._onclear != null) {
        if (this._onclear.isLiteralText()) {
          try {
                       
            java.lang.String __onclear = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onclear.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnclear(__onclear);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onclear", this._onclear);
        }
      }
                          
            if (this._onerror != null) {
        if (this._onerror.isLiteralText()) {
          try {
                       
            java.lang.String __onerror = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onerror.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnerror(__onerror);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onerror", this._onerror);
        }
      }
                        
            if (this._onfileuploadcomplete != null) {
        if (this._onfileuploadcomplete.isLiteralText()) {
          try {
                       
            java.lang.String __onfileuploadcomplete = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onfileuploadcomplete.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnfileuploadcomplete(__onfileuploadcomplete);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onfileuploadcomplete", this._onfileuploadcomplete);
        }
      }
                        
            if (this._onfocus != null) {
        if (this._onfocus.isLiteralText()) {
          try {
                       
            java.lang.String __onfocus = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onfocus.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnfocus(__onfocus);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onfocus", this._onfocus);
        }
      }
                                
            if (this._onselect != null) {
        if (this._onselect.isLiteralText()) {
          try {
                       
            java.lang.String __onselect = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onselect.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnselect(__onselect);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onselect", this._onselect);
        }
      }
                        
            if (this._onsizerejected != null) {
        if (this._onsizerejected.isLiteralText()) {
          try {
                       
            java.lang.String __onsizerejected = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onsizerejected.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnsizerejected(__onsizerejected);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onsizerejected", this._onsizerejected);
        }
      }
                        
            if (this._ontyperejected != null) {
        if (this._ontyperejected.isLiteralText()) {
          try {
                       
            java.lang.String __ontyperejected = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ontyperejected.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOntyperejected(__ontyperejected);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ontyperejected", this._ontyperejected);
        }
      }
                        
            if (this._onupload != null) {
        if (this._onupload.isLiteralText()) {
          try {
                       
            java.lang.String __onupload = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onupload.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnupload(__onupload);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onupload", this._onupload);
        }
      }
                        
            if (this._onuploadcanceled != null) {
        if (this._onuploadcanceled.isLiteralText()) {
          try {
                       
            java.lang.String __onuploadcanceled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onuploadcanceled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnuploadcanceled(__onuploadcanceled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onuploadcanceled", this._onuploadcanceled);
        }
      }
                        
            if (this._onuploadcomplete != null) {
        if (this._onuploadcomplete.isLiteralText()) {
          try {
                       
            java.lang.String __onuploadcomplete = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onuploadcomplete.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnuploadcomplete(__onuploadcomplete);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onuploadcomplete", this._onuploadcomplete);
        }
      }
                         
            if (this._progressLabel != null) {
        if (this._progressLabel.isLiteralText()) {
          try {
                       
            java.lang.String __progressLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._progressLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setProgressLabel(__progressLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("progressLabel", this._progressLabel);
        }
      }
                         
            if (this._required != null) {
        if (this._required.isLiteralText()) {
          try {
                       
            Boolean __required = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._required.getExpressionString(),
                      Boolean.class);
         
                        comp.setRequired(__required.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("required", this._required);
        }
      }
                        
            if (this._requiredMessage != null) {
        if (this._requiredMessage.isLiteralText()) {
          try {
                       
            java.lang.String __requiredMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._requiredMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRequiredMessage(__requiredMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("requiredMessage", this._requiredMessage);
        }
      }
                         
            if (this._sizeErrorLabel != null) {
        if (this._sizeErrorLabel.isLiteralText()) {
          try {
                       
            java.lang.String __sizeErrorLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sizeErrorLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSizeErrorLabel(__sizeErrorLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sizeErrorLabel", this._sizeErrorLabel);
        }
      }
                        
            if (this._status != null) {
        if (this._status.isLiteralText()) {
          try {
                       
            java.lang.String __status = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._status.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStatus(__status);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("status", this._status);
        }
      }
                        
            if (this._stopButtonClass != null) {
        if (this._stopButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __stopButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopButtonClass(__stopButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopButtonClass", this._stopButtonClass);
        }
      }
                        
            if (this._stopButtonClassDisabled != null) {
        if (this._stopButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __stopButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopButtonClassDisabled(__stopButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopButtonClassDisabled", this._stopButtonClassDisabled);
        }
      }
                        
            if (this._stopControlLabel != null) {
        if (this._stopControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __stopControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopControlLabel(__stopControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopControlLabel", this._stopControlLabel);
        }
      }
                        
            if (this._stopEntryControlLabel != null) {
        if (this._stopEntryControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __stopEntryControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopEntryControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopEntryControlLabel(__stopEntryControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopEntryControlLabel", this._stopEntryControlLabel);
        }
      }
                          
            if (this._tabindex != null) {
        if (this._tabindex.isLiteralText()) {
          try {
                       
            java.lang.String __tabindex = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._tabindex.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTabindex(__tabindex);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("tabindex", this._tabindex);
        }
      }
                        
            if (this._transferErrorLabel != null) {
        if (this._transferErrorLabel.isLiteralText()) {
          try {
                       
            java.lang.String __transferErrorLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._transferErrorLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTransferErrorLabel(__transferErrorLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("transferErrorLabel", this._transferErrorLabel);
        }
      }
                        
            if (this._uploadButtonClass != null) {
        if (this._uploadButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __uploadButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadButtonClass(__uploadButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadButtonClass", this._uploadButtonClass);
        }
      }
                        
            if (this._uploadButtonClassDisabled != null) {
        if (this._uploadButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __uploadButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadButtonClassDisabled(__uploadButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadButtonClassDisabled", this._uploadButtonClassDisabled);
        }
      }
                        
            if (this._uploadControlLabel != null) {
        if (this._uploadControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __uploadControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadControlLabel(__uploadControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadControlLabel", this._uploadControlLabel);
        }
      }
                                 if(null != this._uploadData && this._uploadData.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.component.FileUpload with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property uploadData");
        }
      
            if (this._uploadData != null) {
        if (this._uploadData.isLiteralText()) {
          try {
                       
            java.lang.Object __uploadData = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadData.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setUploadData(__uploadData);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadData", this._uploadData);
        }
      }
                        
            if (this._uploadListClass != null) {
        if (this._uploadListClass.isLiteralText()) {
          try {
                       
            java.lang.String __uploadListClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadListClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadListClass(__uploadListClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadListClass", this._uploadListClass);
        }
      }
                        
            if (this._uploadListClassDisabled != null) {
        if (this._uploadListClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __uploadListClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadListClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadListClassDisabled(__uploadListClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadListClassDisabled", this._uploadListClassDisabled);
        }
      }
                         setValidatorProperty(comp, this._validator);
                  
            if (this._validatorMessage != null) {
        if (this._validatorMessage.isLiteralText()) {
          try {
                       
            java.lang.String __validatorMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._validatorMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setValidatorMessage(__validatorMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("validatorMessage", this._validatorMessage);
View Full Code Here

Examples of org.richfaces.component.html.HtmlFileUpload

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlFileUpload comp = (HtmlFileUpload) component;
            
            if (this._acceptedTypes != null) {
        if (this._acceptedTypes.isLiteralText()) {
          try {
                       
            java.lang.String __acceptedTypes = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._acceptedTypes.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAcceptedTypes(__acceptedTypes);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("acceptedTypes", this._acceptedTypes);
        }
      }
                         
            if (this._accesskey != null) {
        if (this._accesskey.isLiteralText()) {
          try {
                       
            java.lang.String __accesskey = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._accesskey.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAccesskey(__accesskey);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("accesskey", this._accesskey);
        }
      }
                        
            if (this._addButtonClass != null) {
        if (this._addButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __addButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._addButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAddButtonClass(__addButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("addButtonClass", this._addButtonClass);
        }
      }
                        
            if (this._addButtonClassDisabled != null) {
        if (this._addButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __addButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._addButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAddButtonClassDisabled(__addButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("addButtonClassDisabled", this._addButtonClassDisabled);
        }
      }
                        
            if (this._addControlLabel != null) {
        if (this._addControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __addControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._addControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAddControlLabel(__addControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("addControlLabel", this._addControlLabel);
        }
      }
                        
            if (this._ajaxSingle != null) {
        if (this._ajaxSingle.isLiteralText()) {
          try {
                       
            Boolean __ajaxSingle = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ajaxSingle.getExpressionString(),
                      Boolean.class);
         
                        comp.setAjaxSingle(__ajaxSingle.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ajaxSingle", this._ajaxSingle);
        }
      }
                         
            if (this._allowFlash != null) {
        if (this._allowFlash.isLiteralText()) {
          try {
                       
            java.lang.String __allowFlash = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._allowFlash.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAllowFlash(__allowFlash);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("allowFlash", this._allowFlash);
        }
      }
                        
            if (this._alt != null) {
        if (this._alt.isLiteralText()) {
          try {
                       
            java.lang.String __alt = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._alt.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAlt(__alt);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("alt", this._alt);
        }
      }
                        
            if (this._autoclear != null) {
        if (this._autoclear.isLiteralText()) {
          try {
                       
            Boolean __autoclear = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._autoclear.getExpressionString(),
                      Boolean.class);
         
                        comp.setAutoclear(__autoclear.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("autoclear", this._autoclear);
        }
      }
                         
            if (this._cancelEntryControlLabel != null) {
        if (this._cancelEntryControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __cancelEntryControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cancelEntryControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCancelEntryControlLabel(__cancelEntryControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cancelEntryControlLabel", this._cancelEntryControlLabel);
        }
      }
                        
            if (this._cleanButtonClass != null) {
        if (this._cleanButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __cleanButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cleanButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCleanButtonClass(__cleanButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cleanButtonClass", this._cleanButtonClass);
        }
      }
                        
            if (this._cleanButtonClassDisabled != null) {
        if (this._cleanButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __cleanButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cleanButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCleanButtonClassDisabled(__cleanButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cleanButtonClassDisabled", this._cleanButtonClassDisabled);
        }
      }
                        
            if (this._clearAllControlLabel != null) {
        if (this._clearAllControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __clearAllControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._clearAllControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setClearAllControlLabel(__clearAllControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("clearAllControlLabel", this._clearAllControlLabel);
        }
      }
                        
            if (this._clearControlLabel != null) {
        if (this._clearControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __clearControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._clearControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setClearControlLabel(__clearControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("clearControlLabel", this._clearControlLabel);
        }
      }
                           
            if (this._disabled != null) {
        if (this._disabled.isLiteralText()) {
          try {
                       
            Boolean __disabled = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._disabled.getExpressionString(),
                      Boolean.class);
         
                        comp.setDisabled(__disabled.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("disabled", this._disabled);
        }
      }
                        
            if (this._doneLabel != null) {
        if (this._doneLabel.isLiteralText()) {
          try {
                       
            java.lang.String __doneLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._doneLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDoneLabel(__doneLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("doneLabel", this._doneLabel);
        }
      }
                         
            if (this._fileEntryClass != null) {
        if (this._fileEntryClass.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryClass(__fileEntryClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryClass", this._fileEntryClass);
        }
      }
                        
            if (this._fileEntryClassDisabled != null) {
        if (this._fileEntryClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryClassDisabled(__fileEntryClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryClassDisabled", this._fileEntryClassDisabled);
        }
      }
                        
            if (this._fileEntryControlClass != null) {
        if (this._fileEntryControlClass.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryControlClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryControlClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryControlClass(__fileEntryControlClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryControlClass", this._fileEntryControlClass);
        }
      }
                        
            if (this._fileEntryControlClassDisabled != null) {
        if (this._fileEntryControlClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryControlClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryControlClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryControlClassDisabled(__fileEntryControlClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryControlClassDisabled", this._fileEntryControlClassDisabled);
        }
      }
                          if(null != this._fileUploadListener){
             if (!this._fileUploadListener.isLiteralText())
             {
                MethodBinding mb = new MethodBindingMethodExpressionAdaptor(this._fileUploadListener);
                ((HtmlFileUpload)component).setFileUploadListener(mb);
             }
             else
             {
                getFacesContext().getExternalContext().log("Component " + component.getClientId(getFacesContext()) + " has invalid fileUploadListener value: " + this._fileUploadListener);
             }
      }
                    
            if (this._immediate != null) {
        if (this._immediate.isLiteralText()) {
          try {
                       
            Boolean __immediate = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._immediate.getExpressionString(),
                      Boolean.class);
         
                        comp.setImmediate(__immediate.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("immediate", this._immediate);
        }
      }
                        
            if (this._immediateUpload != null) {
        if (this._immediateUpload.isLiteralText()) {
          try {
                       
            Boolean __immediateUpload = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._immediateUpload.getExpressionString(),
                      Boolean.class);
         
                        comp.setImmediateUpload(__immediateUpload.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("immediateUpload", this._immediateUpload);
        }
      }
                        
            if (this._listHeight != null) {
        if (this._listHeight.isLiteralText()) {
          try {
                       
            java.lang.String __listHeight = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._listHeight.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setListHeight(__listHeight);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("listHeight", this._listHeight);
        }
      }
                        
            if (this._listWidth != null) {
        if (this._listWidth.isLiteralText()) {
          try {
                       
            java.lang.String __listWidth = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._listWidth.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setListWidth(__listWidth);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("listWidth", this._listWidth);
        }
      }
                              
            if (this._locale != null) {
        if (this._locale.isLiteralText()) {
          try {
                       
            java.lang.Object __locale = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._locale.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setLocale(__locale);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("locale", this._locale);
        }
      }
                        
            if (this._maxFilesQuantity != null) {
        if (this._maxFilesQuantity.isLiteralText()) {
          try {
                       
            java.lang.Integer __maxFilesQuantity = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._maxFilesQuantity.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setMaxFilesQuantity(__maxFilesQuantity);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("maxFilesQuantity", this._maxFilesQuantity);
        }
      }
                          
            if (this._noDuplicate != null) {
        if (this._noDuplicate.isLiteralText()) {
          try {
                       
            Boolean __noDuplicate = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._noDuplicate.getExpressionString(),
                      Boolean.class);
         
                        comp.setNoDuplicate(__noDuplicate.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("noDuplicate", this._noDuplicate);
        }
      }
                        
            if (this._onadd != null) {
        if (this._onadd.isLiteralText()) {
          try {
                       
            java.lang.String __onadd = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onadd.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnadd(__onadd);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onadd", this._onadd);
        }
      }
                        
            if (this._onblur != null) {
        if (this._onblur.isLiteralText()) {
          try {
                       
            java.lang.String __onblur = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onblur.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnblur(__onblur);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onblur", this._onblur);
        }
      }
                        
            if (this._onchange != null) {
        if (this._onchange.isLiteralText()) {
          try {
                       
            java.lang.String __onchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnchange(__onchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onchange", this._onchange);
        }
      }
                        
            if (this._onclear != null) {
        if (this._onclear.isLiteralText()) {
          try {
                       
            java.lang.String __onclear = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onclear.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnclear(__onclear);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onclear", this._onclear);
        }
      }
                          
            if (this._onerror != null) {
        if (this._onerror.isLiteralText()) {
          try {
                       
            java.lang.String __onerror = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onerror.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnerror(__onerror);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onerror", this._onerror);
        }
      }
                        
            if (this._onfileuploadcomplete != null) {
        if (this._onfileuploadcomplete.isLiteralText()) {
          try {
                       
            java.lang.String __onfileuploadcomplete = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onfileuploadcomplete.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnfileuploadcomplete(__onfileuploadcomplete);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onfileuploadcomplete", this._onfileuploadcomplete);
        }
      }
                        
            if (this._onfocus != null) {
        if (this._onfocus.isLiteralText()) {
          try {
                       
            java.lang.String __onfocus = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onfocus.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnfocus(__onfocus);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onfocus", this._onfocus);
        }
      }
                                
            if (this._onselect != null) {
        if (this._onselect.isLiteralText()) {
          try {
                       
            java.lang.String __onselect = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onselect.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnselect(__onselect);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onselect", this._onselect);
        }
      }
                        
            if (this._onsizerejected != null) {
        if (this._onsizerejected.isLiteralText()) {
          try {
                       
            java.lang.String __onsizerejected = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onsizerejected.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnsizerejected(__onsizerejected);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onsizerejected", this._onsizerejected);
        }
      }
                        
            if (this._ontyperejected != null) {
        if (this._ontyperejected.isLiteralText()) {
          try {
                       
            java.lang.String __ontyperejected = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ontyperejected.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOntyperejected(__ontyperejected);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ontyperejected", this._ontyperejected);
        }
      }
                        
            if (this._onupload != null) {
        if (this._onupload.isLiteralText()) {
          try {
                       
            java.lang.String __onupload = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onupload.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnupload(__onupload);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onupload", this._onupload);
        }
      }
                        
            if (this._onuploadcanceled != null) {
        if (this._onuploadcanceled.isLiteralText()) {
          try {
                       
            java.lang.String __onuploadcanceled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onuploadcanceled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnuploadcanceled(__onuploadcanceled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onuploadcanceled", this._onuploadcanceled);
        }
      }
                        
            if (this._onuploadcomplete != null) {
        if (this._onuploadcomplete.isLiteralText()) {
          try {
                       
            java.lang.String __onuploadcomplete = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onuploadcomplete.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnuploadcomplete(__onuploadcomplete);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onuploadcomplete", this._onuploadcomplete);
        }
      }
                         
            if (this._progressLabel != null) {
        if (this._progressLabel.isLiteralText()) {
          try {
                       
            java.lang.String __progressLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._progressLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setProgressLabel(__progressLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("progressLabel", this._progressLabel);
        }
      }
                         
            if (this._required != null) {
        if (this._required.isLiteralText()) {
          try {
                       
            Boolean __required = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._required.getExpressionString(),
                      Boolean.class);
         
                        comp.setRequired(__required.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("required", this._required);
        }
      }
                        
            if (this._requiredMessage != null) {
        if (this._requiredMessage.isLiteralText()) {
          try {
                       
            java.lang.String __requiredMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._requiredMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRequiredMessage(__requiredMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("requiredMessage", this._requiredMessage);
        }
      }
                         
            if (this._sizeErrorLabel != null) {
        if (this._sizeErrorLabel.isLiteralText()) {
          try {
                       
            java.lang.String __sizeErrorLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sizeErrorLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSizeErrorLabel(__sizeErrorLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sizeErrorLabel", this._sizeErrorLabel);
        }
      }
                        
            if (this._status != null) {
        if (this._status.isLiteralText()) {
          try {
                       
            java.lang.String __status = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._status.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStatus(__status);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("status", this._status);
        }
      }
                        
            if (this._stopButtonClass != null) {
        if (this._stopButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __stopButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopButtonClass(__stopButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopButtonClass", this._stopButtonClass);
        }
      }
                        
            if (this._stopButtonClassDisabled != null) {
        if (this._stopButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __stopButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopButtonClassDisabled(__stopButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopButtonClassDisabled", this._stopButtonClassDisabled);
        }
      }
                        
            if (this._stopControlLabel != null) {
        if (this._stopControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __stopControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopControlLabel(__stopControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopControlLabel", this._stopControlLabel);
        }
      }
                        
            if (this._stopEntryControlLabel != null) {
        if (this._stopEntryControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __stopEntryControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopEntryControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopEntryControlLabel(__stopEntryControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopEntryControlLabel", this._stopEntryControlLabel);
        }
      }
                          
            if (this._tabindex != null) {
        if (this._tabindex.isLiteralText()) {
          try {
                       
            java.lang.String __tabindex = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._tabindex.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTabindex(__tabindex);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("tabindex", this._tabindex);
        }
      }
                        
            if (this._transferErrorLabel != null) {
        if (this._transferErrorLabel.isLiteralText()) {
          try {
                       
            java.lang.String __transferErrorLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._transferErrorLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTransferErrorLabel(__transferErrorLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("transferErrorLabel", this._transferErrorLabel);
        }
      }
                        
            if (this._uploadButtonClass != null) {
        if (this._uploadButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __uploadButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadButtonClass(__uploadButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadButtonClass", this._uploadButtonClass);
        }
      }
                        
            if (this._uploadButtonClassDisabled != null) {
        if (this._uploadButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __uploadButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadButtonClassDisabled(__uploadButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadButtonClassDisabled", this._uploadButtonClassDisabled);
        }
      }
                        
            if (this._uploadControlLabel != null) {
        if (this._uploadControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __uploadControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadControlLabel(__uploadControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadControlLabel", this._uploadControlLabel);
        }
      }
                                 if(null != this._uploadData && this._uploadData.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.component.FileUpload with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property uploadData");
        }
      
            if (this._uploadData != null) {
        if (this._uploadData.isLiteralText()) {
          try {
                       
            java.lang.Object __uploadData = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadData.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setUploadData(__uploadData);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadData", this._uploadData);
        }
      }
                        
            if (this._uploadListClass != null) {
        if (this._uploadListClass.isLiteralText()) {
          try {
                       
            java.lang.String __uploadListClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadListClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadListClass(__uploadListClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadListClass", this._uploadListClass);
        }
      }
                        
            if (this._uploadListClassDisabled != null) {
        if (this._uploadListClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __uploadListClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadListClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadListClassDisabled(__uploadListClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadListClassDisabled", this._uploadListClassDisabled);
        }
      }
                         setValidatorProperty(comp, this._validator);
                  
            if (this._validatorMessage != null) {
        if (this._validatorMessage.isLiteralText()) {
          try {
                       
            java.lang.String __validatorMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._validatorMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setValidatorMessage(__validatorMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("validatorMessage", this._validatorMessage);
View Full Code Here

Examples of org.richfaces.component.html.HtmlFileUpload

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlFileUpload comp = (HtmlFileUpload) component;
            
            if (this._acceptedTypes != null) {
        if (this._acceptedTypes.isLiteralText()) {
          try {
                       
            java.lang.String __acceptedTypes = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._acceptedTypes.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAcceptedTypes(__acceptedTypes);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("acceptedTypes", this._acceptedTypes);
        }
      }
                         
            if (this._accesskey != null) {
        if (this._accesskey.isLiteralText()) {
          try {
                       
            java.lang.String __accesskey = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._accesskey.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAccesskey(__accesskey);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("accesskey", this._accesskey);
        }
      }
                        
            if (this._addButtonClass != null) {
        if (this._addButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __addButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._addButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAddButtonClass(__addButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("addButtonClass", this._addButtonClass);
        }
      }
                        
            if (this._addButtonClassDisabled != null) {
        if (this._addButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __addButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._addButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAddButtonClassDisabled(__addButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("addButtonClassDisabled", this._addButtonClassDisabled);
        }
      }
                        
            if (this._addControlLabel != null) {
        if (this._addControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __addControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._addControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAddControlLabel(__addControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("addControlLabel", this._addControlLabel);
        }
      }
                        
            if (this._ajaxSingle != null) {
        if (this._ajaxSingle.isLiteralText()) {
          try {
                       
            Boolean __ajaxSingle = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ajaxSingle.getExpressionString(),
                      Boolean.class);
         
                        comp.setAjaxSingle(__ajaxSingle.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ajaxSingle", this._ajaxSingle);
        }
      }
                         
            if (this._allowFlash != null) {
        if (this._allowFlash.isLiteralText()) {
          try {
                       
            java.lang.String __allowFlash = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._allowFlash.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAllowFlash(__allowFlash);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("allowFlash", this._allowFlash);
        }
      }
                        
            if (this._alt != null) {
        if (this._alt.isLiteralText()) {
          try {
                       
            java.lang.String __alt = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._alt.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAlt(__alt);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("alt", this._alt);
        }
      }
                        
            if (this._autoclear != null) {
        if (this._autoclear.isLiteralText()) {
          try {
                       
            Boolean __autoclear = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._autoclear.getExpressionString(),
                      Boolean.class);
         
                        comp.setAutoclear(__autoclear.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("autoclear", this._autoclear);
        }
      }
                         
            if (this._cancelEntryControlLabel != null) {
        if (this._cancelEntryControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __cancelEntryControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cancelEntryControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCancelEntryControlLabel(__cancelEntryControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cancelEntryControlLabel", this._cancelEntryControlLabel);
        }
      }
                        
            if (this._cleanButtonClass != null) {
        if (this._cleanButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __cleanButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cleanButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCleanButtonClass(__cleanButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cleanButtonClass", this._cleanButtonClass);
        }
      }
                        
            if (this._cleanButtonClassDisabled != null) {
        if (this._cleanButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __cleanButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cleanButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCleanButtonClassDisabled(__cleanButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cleanButtonClassDisabled", this._cleanButtonClassDisabled);
        }
      }
                        
            if (this._clearAllControlLabel != null) {
        if (this._clearAllControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __clearAllControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._clearAllControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setClearAllControlLabel(__clearAllControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("clearAllControlLabel", this._clearAllControlLabel);
        }
      }
                        
            if (this._clearControlLabel != null) {
        if (this._clearControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __clearControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._clearControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setClearControlLabel(__clearControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("clearControlLabel", this._clearControlLabel);
        }
      }
                           
            if (this._disabled != null) {
        if (this._disabled.isLiteralText()) {
          try {
                       
            Boolean __disabled = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._disabled.getExpressionString(),
                      Boolean.class);
         
                        comp.setDisabled(__disabled.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("disabled", this._disabled);
        }
      }
                        
            if (this._doneLabel != null) {
        if (this._doneLabel.isLiteralText()) {
          try {
                       
            java.lang.String __doneLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._doneLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDoneLabel(__doneLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("doneLabel", this._doneLabel);
        }
      }
                         
            if (this._fileEntryClass != null) {
        if (this._fileEntryClass.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryClass(__fileEntryClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryClass", this._fileEntryClass);
        }
      }
                        
            if (this._fileEntryClassDisabled != null) {
        if (this._fileEntryClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryClassDisabled(__fileEntryClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryClassDisabled", this._fileEntryClassDisabled);
        }
      }
                        
            if (this._fileEntryControlClass != null) {
        if (this._fileEntryControlClass.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryControlClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryControlClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryControlClass(__fileEntryControlClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryControlClass", this._fileEntryControlClass);
        }
      }
                        
            if (this._fileEntryControlClassDisabled != null) {
        if (this._fileEntryControlClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __fileEntryControlClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fileEntryControlClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFileEntryControlClassDisabled(__fileEntryControlClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fileEntryControlClassDisabled", this._fileEntryControlClassDisabled);
        }
      }
                          if(null != this._fileUploadListener){
             if (!this._fileUploadListener.isLiteralText())
             {
                MethodBinding mb = new MethodBindingMethodExpressionAdaptor(this._fileUploadListener);
                ((HtmlFileUpload)component).setFileUploadListener(mb);
             }
             else
             {
                getFacesContext().getExternalContext().log("Component " + component.getClientId(getFacesContext()) + " has invalid fileUploadListener value: " + this._fileUploadListener);
             }
      }
                    
            if (this._immediate != null) {
        if (this._immediate.isLiteralText()) {
          try {
                       
            Boolean __immediate = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._immediate.getExpressionString(),
                      Boolean.class);
         
                        comp.setImmediate(__immediate.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("immediate", this._immediate);
        }
      }
                        
            if (this._immediateUpload != null) {
        if (this._immediateUpload.isLiteralText()) {
          try {
                       
            Boolean __immediateUpload = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._immediateUpload.getExpressionString(),
                      Boolean.class);
         
                        comp.setImmediateUpload(__immediateUpload.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("immediateUpload", this._immediateUpload);
        }
      }
                        
            if (this._listHeight != null) {
        if (this._listHeight.isLiteralText()) {
          try {
                       
            java.lang.String __listHeight = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._listHeight.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setListHeight(__listHeight);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("listHeight", this._listHeight);
        }
      }
                        
            if (this._listWidth != null) {
        if (this._listWidth.isLiteralText()) {
          try {
                       
            java.lang.String __listWidth = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._listWidth.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setListWidth(__listWidth);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("listWidth", this._listWidth);
        }
      }
                              
            if (this._locale != null) {
        if (this._locale.isLiteralText()) {
          try {
                       
            java.lang.Object __locale = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._locale.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setLocale(__locale);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("locale", this._locale);
        }
      }
                        
            if (this._maxFilesQuantity != null) {
        if (this._maxFilesQuantity.isLiteralText()) {
          try {
                       
            java.lang.Integer __maxFilesQuantity = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._maxFilesQuantity.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setMaxFilesQuantity(__maxFilesQuantity);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("maxFilesQuantity", this._maxFilesQuantity);
        }
      }
                          
            if (this._noDuplicate != null) {
        if (this._noDuplicate.isLiteralText()) {
          try {
                       
            Boolean __noDuplicate = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._noDuplicate.getExpressionString(),
                      Boolean.class);
         
                        comp.setNoDuplicate(__noDuplicate.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("noDuplicate", this._noDuplicate);
        }
      }
                        
            if (this._onadd != null) {
        if (this._onadd.isLiteralText()) {
          try {
                       
            java.lang.String __onadd = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onadd.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnadd(__onadd);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onadd", this._onadd);
        }
      }
                        
            if (this._onblur != null) {
        if (this._onblur.isLiteralText()) {
          try {
                       
            java.lang.String __onblur = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onblur.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnblur(__onblur);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onblur", this._onblur);
        }
      }
                        
            if (this._onchange != null) {
        if (this._onchange.isLiteralText()) {
          try {
                       
            java.lang.String __onchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnchange(__onchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onchange", this._onchange);
        }
      }
                        
            if (this._onclear != null) {
        if (this._onclear.isLiteralText()) {
          try {
                       
            java.lang.String __onclear = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onclear.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnclear(__onclear);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onclear", this._onclear);
        }
      }
                          
            if (this._onerror != null) {
        if (this._onerror.isLiteralText()) {
          try {
                       
            java.lang.String __onerror = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onerror.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnerror(__onerror);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onerror", this._onerror);
        }
      }
                        
            if (this._onfocus != null) {
        if (this._onfocus.isLiteralText()) {
          try {
                       
            java.lang.String __onfocus = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onfocus.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnfocus(__onfocus);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onfocus", this._onfocus);
        }
      }
                                
            if (this._onselect != null) {
        if (this._onselect.isLiteralText()) {
          try {
                       
            java.lang.String __onselect = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onselect.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnselect(__onselect);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onselect", this._onselect);
        }
      }
                        
            if (this._onsizerejected != null) {
        if (this._onsizerejected.isLiteralText()) {
          try {
                       
            java.lang.String __onsizerejected = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onsizerejected.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnsizerejected(__onsizerejected);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onsizerejected", this._onsizerejected);
        }
      }
                        
            if (this._ontyperejected != null) {
        if (this._ontyperejected.isLiteralText()) {
          try {
                       
            java.lang.String __ontyperejected = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ontyperejected.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOntyperejected(__ontyperejected);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ontyperejected", this._ontyperejected);
        }
      }
                        
            if (this._onupload != null) {
        if (this._onupload.isLiteralText()) {
          try {
                       
            java.lang.String __onupload = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onupload.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnupload(__onupload);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onupload", this._onupload);
        }
      }
                        
            if (this._onuploadcanceled != null) {
        if (this._onuploadcanceled.isLiteralText()) {
          try {
                       
            java.lang.String __onuploadcanceled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onuploadcanceled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnuploadcanceled(__onuploadcanceled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onuploadcanceled", this._onuploadcanceled);
        }
      }
                        
            if (this._onuploadcomplete != null) {
        if (this._onuploadcomplete.isLiteralText()) {
          try {
                       
            java.lang.String __onuploadcomplete = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onuploadcomplete.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnuploadcomplete(__onuploadcomplete);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onuploadcomplete", this._onuploadcomplete);
        }
      }
                         
            if (this._progressLabel != null) {
        if (this._progressLabel.isLiteralText()) {
          try {
                       
            java.lang.String __progressLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._progressLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setProgressLabel(__progressLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("progressLabel", this._progressLabel);
        }
      }
                         
            if (this._required != null) {
        if (this._required.isLiteralText()) {
          try {
                       
            Boolean __required = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._required.getExpressionString(),
                      Boolean.class);
         
                        comp.setRequired(__required.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("required", this._required);
        }
      }
                        
            if (this._requiredMessage != null) {
        if (this._requiredMessage.isLiteralText()) {
          try {
                       
            java.lang.String __requiredMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._requiredMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRequiredMessage(__requiredMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("requiredMessage", this._requiredMessage);
        }
      }
                         
            if (this._sizeErrorLabel != null) {
        if (this._sizeErrorLabel.isLiteralText()) {
          try {
                       
            java.lang.String __sizeErrorLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sizeErrorLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSizeErrorLabel(__sizeErrorLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sizeErrorLabel", this._sizeErrorLabel);
        }
      }
                        
            if (this._status != null) {
        if (this._status.isLiteralText()) {
          try {
                       
            java.lang.String __status = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._status.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStatus(__status);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("status", this._status);
        }
      }
                        
            if (this._stopButtonClass != null) {
        if (this._stopButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __stopButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopButtonClass(__stopButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopButtonClass", this._stopButtonClass);
        }
      }
                        
            if (this._stopButtonClassDisabled != null) {
        if (this._stopButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __stopButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopButtonClassDisabled(__stopButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopButtonClassDisabled", this._stopButtonClassDisabled);
        }
      }
                        
            if (this._stopControlLabel != null) {
        if (this._stopControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __stopControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopControlLabel(__stopControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopControlLabel", this._stopControlLabel);
        }
      }
                        
            if (this._stopEntryControlLabel != null) {
        if (this._stopEntryControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __stopEntryControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stopEntryControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStopEntryControlLabel(__stopEntryControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stopEntryControlLabel", this._stopEntryControlLabel);
        }
      }
                          
            if (this._tabindex != null) {
        if (this._tabindex.isLiteralText()) {
          try {
                       
            java.lang.String __tabindex = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._tabindex.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTabindex(__tabindex);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("tabindex", this._tabindex);
        }
      }
                        
            if (this._transferErrorLabel != null) {
        if (this._transferErrorLabel.isLiteralText()) {
          try {
                       
            java.lang.String __transferErrorLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._transferErrorLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTransferErrorLabel(__transferErrorLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("transferErrorLabel", this._transferErrorLabel);
        }
      }
                        
            if (this._uploadButtonClass != null) {
        if (this._uploadButtonClass.isLiteralText()) {
          try {
                       
            java.lang.String __uploadButtonClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadButtonClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadButtonClass(__uploadButtonClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadButtonClass", this._uploadButtonClass);
        }
      }
                        
            if (this._uploadButtonClassDisabled != null) {
        if (this._uploadButtonClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __uploadButtonClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadButtonClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadButtonClassDisabled(__uploadButtonClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadButtonClassDisabled", this._uploadButtonClassDisabled);
        }
      }
                        
            if (this._uploadControlLabel != null) {
        if (this._uploadControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __uploadControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadControlLabel(__uploadControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadControlLabel", this._uploadControlLabel);
        }
      }
                                 if(null != this._uploadData && this._uploadData.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.component.FileUpload with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property uploadData");
        }
      
            if (this._uploadData != null) {
        if (this._uploadData.isLiteralText()) {
          try {
                       
            java.lang.Object __uploadData = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadData.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setUploadData(__uploadData);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadData", this._uploadData);
        }
      }
                        
            if (this._uploadListClass != null) {
        if (this._uploadListClass.isLiteralText()) {
          try {
                       
            java.lang.String __uploadListClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadListClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadListClass(__uploadListClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadListClass", this._uploadListClass);
        }
      }
                        
            if (this._uploadListClassDisabled != null) {
        if (this._uploadListClassDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __uploadListClassDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._uploadListClassDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUploadListClassDisabled(__uploadListClassDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("uploadListClassDisabled", this._uploadListClassDisabled);
        }
      }
                         setValidatorProperty(comp, this._validator);
                  
            if (this._validatorMessage != null) {
        if (this._validatorMessage.isLiteralText()) {
          try {
                       
            java.lang.String __validatorMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._validatorMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setValidatorMessage(__validatorMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("validatorMessage", this._validatorMessage);
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.