Package org.richfaces.component.html

Examples of org.richfaces.component.html.HtmlRecursiveTreeNodesAdaptor


     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlRecursiveTreeNodesAdaptor comp = (HtmlRecursiveTreeNodesAdaptor) component;
                
            if (this._included != null) {
        if (this._included.isLiteralText()) {
          try {
                       
            Boolean __included = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._included.getExpressionString(),
                      Boolean.class);
         
                        comp.setIncluded(__included.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("included", this._included);
        }
      }
                        
            if (this._includedNode != null) {
        if (this._includedNode.isLiteralText()) {
          try {
                       
            Boolean __includedNode = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._includedNode.getExpressionString(),
                      Boolean.class);
         
                        comp.setIncludedNode(__includedNode.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("includedNode", this._includedNode);
        }
      }
                        
            if (this._includedRoot != null) {
        if (this._includedRoot.isLiteralText()) {
          try {
                       
            Boolean __includedRoot = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._includedRoot.getExpressionString(),
                      Boolean.class);
         
                        comp.setIncludedRoot(__includedRoot.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("includedRoot", this._includedRoot);
        }
      }
                                 if(null != this._nodes && this._nodes.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.RecursiveTreeNodesAdaptor with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property nodes");
        }
      
            if (this._nodes != null) {
        if (this._nodes.isLiteralText()) {
          try {
                       
            java.lang.Object __nodes = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._nodes.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setNodes(__nodes);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("nodes", this._nodes);
        }
      }
                                  if(null != this._roots && this._roots.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.RecursiveTreeNodesAdaptor with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property roots");
        }
      
            if (this._roots != null) {
        if (this._roots.isLiteralText()) {
          try {
                       
            java.lang.Object __roots = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._roots.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setRoots(__roots);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("roots", this._roots);
        }
      }
                         
            if (this._var != null) {
        if (this._var.isLiteralText()) {
          try {
                       
            java.lang.String __var = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._var.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setVar(__var);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("var", this._var);
View Full Code Here


     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlRecursiveTreeNodesAdaptor comp = (HtmlRecursiveTreeNodesAdaptor) component;
                
            if (this._included != null) {
        if (this._included.isLiteralText()) {
          try {
                       
            Boolean __included = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._included.getExpressionString(),
                      Boolean.class);
         
                        comp.setIncluded(__included.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("included", this._included);
        }
      }
                        
            if (this._includedNode != null) {
        if (this._includedNode.isLiteralText()) {
          try {
                       
            Boolean __includedNode = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._includedNode.getExpressionString(),
                      Boolean.class);
         
                        comp.setIncludedNode(__includedNode.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("includedNode", this._includedNode);
        }
      }
                        
            if (this._includedRoot != null) {
        if (this._includedRoot.isLiteralText()) {
          try {
                       
            Boolean __includedRoot = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._includedRoot.getExpressionString(),
                      Boolean.class);
         
                        comp.setIncludedRoot(__includedRoot.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("includedRoot", this._includedRoot);
        }
      }
                                 if(null != this._nodes && this._nodes.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.RecursiveTreeNodesAdaptor with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property nodes");
        }
      
            if (this._nodes != null) {
        if (this._nodes.isLiteralText()) {
          try {
                       
            java.lang.Object __nodes = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._nodes.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setNodes(__nodes);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("nodes", this._nodes);
        }
      }
                                  if(null != this._roots && this._roots.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.RecursiveTreeNodesAdaptor with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property roots");
        }
      
            if (this._roots != null) {
        if (this._roots.isLiteralText()) {
          try {
                       
            java.lang.Object __roots = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._roots.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setRoots(__roots);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("roots", this._roots);
        }
      }
                         
            if (this._var != null) {
        if (this._var.isLiteralText()) {
          try {
                       
            java.lang.String __var = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._var.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setVar(__var);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("var", this._var);
View Full Code Here

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlRecursiveTreeNodesAdaptor comp = (HtmlRecursiveTreeNodesAdaptor) component;
                
            if (this._included != null) {
        if (this._included.isLiteralText()) {
          try {
                       
            Boolean __included = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._included.getExpressionString(),
                      Boolean.class);
         
                        comp.setIncluded(__included.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("included", this._included);
        }
      }
                        
            if (this._includedNode != null) {
        if (this._includedNode.isLiteralText()) {
          try {
                       
            Boolean __includedNode = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._includedNode.getExpressionString(),
                      Boolean.class);
         
                        comp.setIncludedNode(__includedNode.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("includedNode", this._includedNode);
        }
      }
                        
            if (this._includedRoot != null) {
        if (this._includedRoot.isLiteralText()) {
          try {
                       
            Boolean __includedRoot = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._includedRoot.getExpressionString(),
                      Boolean.class);
         
                        comp.setIncludedRoot(__includedRoot.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("includedRoot", this._includedRoot);
        }
      }
                                 if(null != this._nodes && this._nodes.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.RecursiveTreeNodesAdaptor with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property nodes");
        }
      
            if (this._nodes != null) {
        if (this._nodes.isLiteralText()) {
          try {
                       
            java.lang.Object __nodes = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._nodes.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setNodes(__nodes);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("nodes", this._nodes);
        }
      }
                        
            if (this._recursionOrder != null) {
        if (this._recursionOrder.isLiteralText()) {
          try {
                       
            java.lang.String __recursionOrder = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._recursionOrder.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRecursionOrder(__recursionOrder);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("recursionOrder", this._recursionOrder);
        }
      }
                                  if(null != this._roots && this._roots.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.RecursiveTreeNodesAdaptor with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property roots");
        }
      
            if (this._roots != null) {
        if (this._roots.isLiteralText()) {
          try {
                       
            java.lang.Object __roots = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._roots.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setRoots(__roots);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("roots", this._roots);
        }
      }
                         
            if (this._var != null) {
        if (this._var.isLiteralText()) {
          try {
                       
            java.lang.String __var = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._var.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setVar(__var);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("var", this._var);
View Full Code Here

TOP

Related Classes of org.richfaces.component.html.HtmlRecursiveTreeNodesAdaptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.