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

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


     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlCache comp = (HtmlCache) component;
                      if(null != this._cacheProvider && this._cacheProvider.isLiteralText()){
          throw new IllegalArgumentException("Component org.jboss.seam.ui.Cache with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property cacheProvider");
        }
      
            if (this._cacheProvider != null) {
        if (this._cacheProvider.isLiteralText()) {
          try {
                       
            org.jboss.seam.cache.CacheProvider __cacheProvider = (org.jboss.seam.cache.CacheProvider) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cacheProvider.getExpressionString(),
                      org.jboss.seam.cache.CacheProvider.class);
         
                        comp.setCacheProvider(__cacheProvider);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cacheProvider", this._cacheProvider);
        }
      }
                                 if(null != this._enabled && this._enabled.isLiteralText()){
          throw new IllegalArgumentException("Component org.jboss.seam.ui.Cache with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property enabled");
        }
      
            if (this._enabled != null) {
        if (this._enabled.isLiteralText()) {
          try {
                       
            Boolean __enabled = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._enabled.getExpressionString(),
                      Boolean.class);
         
                        comp.setEnabled(__enabled.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("enabled", this._enabled);
        }
      }
                          
            if (this._key != null) {
        if (this._key.isLiteralText()) {
          try {
                       
            java.lang.String __key = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._key.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setKey(__key);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("key", this._key);
        }
      }
                        
            if (this._region != null) {
        if (this._region.isLiteralText()) {
          try {
                       
            java.lang.String __region = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._region.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRegion(__region);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("region", this._region);
View Full Code Here


     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlCache comp = (HtmlCache) component;
                      if(null != this._cacheProvider && this._cacheProvider.isLiteralText()){
          throw new IllegalArgumentException("Component org.jboss.seam.ui.Cache with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property cacheProvider");
        }
      
            if (this._cacheProvider != null) {
        if (this._cacheProvider.isLiteralText()) {
          try {
                       
            org.jboss.seam.cache.CacheProvider __cacheProvider = (org.jboss.seam.cache.CacheProvider) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cacheProvider.getExpressionString(),
                      org.jboss.seam.cache.CacheProvider.class);
         
                        comp.setCacheProvider(__cacheProvider);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cacheProvider", this._cacheProvider);
        }
      }
                                 if(null != this._enabled && this._enabled.isLiteralText()){
          throw new IllegalArgumentException("Component org.jboss.seam.ui.Cache with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property enabled");
        }
      
            if (this._enabled != null) {
        if (this._enabled.isLiteralText()) {
          try {
                       
            Boolean __enabled = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._enabled.getExpressionString(),
                      Boolean.class);
         
                        comp.setEnabled(__enabled.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("enabled", this._enabled);
        }
      }
                          
            if (this._key != null) {
        if (this._key.isLiteralText()) {
          try {
                       
            java.lang.String __key = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._key.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setKey(__key);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("key", this._key);
        }
      }
                        
            if (this._region != null) {
        if (this._region.isLiteralText()) {
          try {
                       
            java.lang.String __region = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._region.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRegion(__region);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("region", this._region);
View Full Code Here

TOP

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

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.