Package org.richfaces.component.html

Examples of org.richfaces.component.html.HtmlPanel


     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlPanel comp = (HtmlPanel) component;
             
            if (this._bodyClass != null) {
        if (this._bodyClass.isLiteralText()) {
          try {
                       
            java.lang.String __bodyClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._bodyClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setBodyClass(__bodyClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("bodyClass", this._bodyClass);
        }
      }
                         
            if (this._header != null) {
        if (this._header.isLiteralText()) {
          try {
                       
            java.lang.String __header = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._header.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setHeader(__header);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("header", this._header);
        }
      }
                        
            if (this._headerClass != null) {
        if (this._headerClass.isLiteralText()) {
          try {
                       
            java.lang.String __headerClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._headerClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setHeaderClass(__headerClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("headerClass", this._headerClass);
View Full Code Here


     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlPanel comp = (HtmlPanel) component;
             
            if (this._bodyClass != null) {
        if (this._bodyClass.isLiteralText()) {
          try {
                       
            java.lang.String __bodyClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._bodyClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setBodyClass(__bodyClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("bodyClass", this._bodyClass);
        }
      }
                         
            if (this._header != null) {
        if (this._header.isLiteralText()) {
          try {
                       
            java.lang.String __header = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._header.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setHeader(__header);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("header", this._header);
        }
      }
                        
            if (this._headerClass != null) {
        if (this._headerClass.isLiteralText()) {
          try {
                       
            java.lang.String __headerClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._headerClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setHeaderClass(__headerClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("headerClass", this._headerClass);
View Full Code Here

        super( testName );
    }

    public void setUp() throws Exception {
      super.setUp();
    htmlPanel = new HtmlPanel();
      htmlPanel.setId("panel");
      htmlPanel.setRendererType("panelRenderer");
    facesContext.getViewRoot().getChildren().add(htmlPanel);
    renderKit.addRenderer(HtmlPanel.COMPONENT_FAMILY, "panelRenderer", new PanelRenderer());
    }
View Full Code Here

  /**
   * Test method for {@link org.richfaces.taglib.PanelTag#setProperties(javax.faces.component.UIComponent)}.
   * @throws JspException
   */
  public void testSetPropertiesUIComponent() throws JspException {
    HtmlPanel panel = new HtmlPanel();
    panelTag.setBodyClass(new MockValueExpression("panel", String.class));
    panelTag.setHeaderClass(new MockValueExpression("headClass", String.class));
    panelTag.setProperties(panel);
    assertEquals("panel", panel.getBodyClass());
    assertEquals("headClass", panel.getHeaderClass());
  }
View Full Code Here

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlPanel comp = (HtmlPanel) component;
             
            if (this._bodyClass != null) {
        if (this._bodyClass.isLiteralText()) {
          try {
                       
            java.lang.String __bodyClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._bodyClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setBodyClass(__bodyClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("bodyClass", this._bodyClass);
        }
      }
                         
            if (this._header != null) {
        if (this._header.isLiteralText()) {
          try {
                       
            java.lang.String __header = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._header.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setHeader(__header);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("header", this._header);
        }
      }
                        
            if (this._headerClass != null) {
        if (this._headerClass.isLiteralText()) {
          try {
                       
            java.lang.String __headerClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._headerClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setHeaderClass(__headerClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("headerClass", this._headerClass);
View Full Code Here

TOP

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

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.