Package org.ajax4jsf.component.html

Examples of org.ajax4jsf.component.html.HtmlLoadStyle


        if (ResourceLoader.instance().getResource(cssPath) != null) {
            String cssRequestURIPath = pluginMacro.getRequestStylesheetPath() + "/" + pluginMacro.getName() + ".css";
            log.debug("including macro CSS file, rendering URI for document head: " + cssRequestURIPath);

            // Use Ajax4JSF loader, it can do what we want - add a CSS <link> to the HTML <head>
            HtmlLoadStyle style = new HtmlLoadStyle();
            style.setSrc(cssRequestURIPath);

            cmp.getChildren().add(style);
            // Clear these out in the next build phase
            ComponentSupport.markForDeletion(style);
        } else {
View Full Code Here


     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlLoadStyle comp = (HtmlLoadStyle) component;
               
            if (this._media != null) {
        if (this._media.isLiteralText()) {
          try {
                       
            java.lang.String __media = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._media.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setMedia(__media);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("media", this._media);
        }
      }
                         
            if (this._src != null) {
        if (this._src.isLiteralText()) {
          try {
                       
            java.lang.Object __src = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._src.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setSrc(__src);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("src", this._src);
View Full Code Here

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlLoadStyle comp = (HtmlLoadStyle) component;
               
            if (this._media != null) {
        if (this._media.isLiteralText()) {
          try {
                       
            java.lang.String __media = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._media.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setMedia(__media);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("media", this._media);
        }
      }
                         
            if (this._src != null) {
        if (this._src.isLiteralText()) {
          try {
                       
            java.lang.Object __src = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._src.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setSrc(__src);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("src", this._src);
View Full Code Here

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlLoadStyle comp = (HtmlLoadStyle) component;
               
            if (this._media != null) {
        if (this._media.isLiteralText()) {
          try {
                       
            java.lang.String __media = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._media.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setMedia(__media);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("media", this._media);
        }
      }
                         
            if (this._src != null) {
        if (this._src.isLiteralText()) {
          try {
                       
            java.lang.Object __src = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._src.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setSrc(__src);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("src", this._src);
View Full Code Here

TOP

Related Classes of org.ajax4jsf.component.html.HtmlLoadStyle

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.