Examples of Include


Examples of org.ajax4jsf.component.html.Include

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    Include comp = (Include) component;
            
            if (this._ajaxRendered != null) {
        if (this._ajaxRendered.isLiteralText()) {
          try {
                       
            Boolean __ajaxRendered = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ajaxRendered.getExpressionString(),
                      Boolean.class);
         
                        comp.setAjaxRendered(__ajaxRendered.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ajaxRendered", this._ajaxRendered);
        }
      }
                         
            if (this._dir != null) {
        if (this._dir.isLiteralText()) {
          try {
                       
            java.lang.String __dir = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._dir.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDir(__dir);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("dir", this._dir);
        }
      }
                          
            if (this._keepTransient != null) {
        if (this._keepTransient.isLiteralText()) {
          try {
                       
            Boolean __keepTransient = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._keepTransient.getExpressionString(),
                      Boolean.class);
         
                        comp.setKeepTransient(__keepTransient.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("keepTransient", this._keepTransient);
        }
      }
                        
            if (this._lang != null) {
        if (this._lang.isLiteralText()) {
          try {
                       
            java.lang.String __lang = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._lang.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLang(__lang);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("lang", this._lang);
        }
      }
                        
            if (this._layout != null) {
        if (this._layout.isLiteralText()) {
          try {
                       
            java.lang.String __layout = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._layout.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLayout(__layout);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("layout", this._layout);
        }
      }
                         
            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._title != null) {
        if (this._title.isLiteralText()) {
          try {
                       
            java.lang.String __title = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._title.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTitle(__title);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("title", this._title);

Examples of org.ajax4jsf.component.html.Include

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    Include comp = (Include) component;
            
            if (this._ajaxRendered != null) {
        if (this._ajaxRendered.isLiteralText()) {
          try {
                       
            Boolean __ajaxRendered = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ajaxRendered.getExpressionString(),
                      Boolean.class);
         
                        comp.setAjaxRendered(__ajaxRendered.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ajaxRendered", this._ajaxRendered);
        }
      }
                         
            if (this._dir != null) {
        if (this._dir.isLiteralText()) {
          try {
                       
            java.lang.String __dir = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._dir.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDir(__dir);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("dir", this._dir);
        }
      }
                          
            if (this._keepTransient != null) {
        if (this._keepTransient.isLiteralText()) {
          try {
                       
            Boolean __keepTransient = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._keepTransient.getExpressionString(),
                      Boolean.class);
         
                        comp.setKeepTransient(__keepTransient.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("keepTransient", this._keepTransient);
        }
      }
                        
            if (this._lang != null) {
        if (this._lang.isLiteralText()) {
          try {
                       
            java.lang.String __lang = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._lang.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLang(__lang);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("lang", this._lang);
        }
      }
                        
            if (this._layout != null) {
        if (this._layout.isLiteralText()) {
          try {
                       
            java.lang.String __layout = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._layout.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLayout(__layout);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("layout", this._layout);
        }
      }
                         
            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._title != null) {
        if (this._title.isLiteralText()) {
          try {
                       
            java.lang.String __title = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._title.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTitle(__title);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("title", this._title);

Examples of org.apache.struts2.components.Include

    public String getBeanName() {
        return "include";
    }

    protected Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new Include(stack, req, res);
    }

Examples of org.apache.struts2.components.Include

    public IncludeModel(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        super(stack, req, res);
    }

    protected Component getBean() {
        return new Include(stack, req, res);
    }

Examples of org.apache.struts2.components.Include

    private static final long serialVersionUID = -1585165567043278243L;

    protected String value;

    public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new Include(stack, req, res);
    }

Examples of org.apache.struts2.components.Include

    public IncludeModel(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        super(stack, req, res);
    }

    protected Component getBean() {
        return new Include(stack, req, res);
    }

Examples of org.apache.struts2.components.Include

    public String getBeanName() {
        return "include";
    }

    protected Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new Include(stack, req, res);
    }

Examples of org.apache.struts2.components.Include

  private static final long serialVersionUID = -1585165567043278243L;
 
  protected String value;

    public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new Include(stack, req, res);
    }

Examples of org.apache.struts2.components.Include

        controlRequestDispatcher.replay();

        tag.setValue("person/create.jsp");
        tag.doStartTag();
        // adding param must be done after doStartTag()
        Include include = (Include) tag.getComponent();
        include.addParameter("user", "Santa Claus");
        tag.doEndTag();

        controlRequestDispatcher.verify();
        assertEquals("/person/create.jsp?user=Santa+Claus", request.getRequestDispatherString());
        assertEquals("", writer.toString());

Examples of org.apache.struts2.components.Include

        controlRequestDispatcher.replay();

        tag.setValue("person/create.jsp");
        tag.doStartTag();
        // adding param must be done after doStartTag()
        Include include = (Include) tag.getComponent();
        include.addParameter("user", "Santa Claus");
        tag.doEndTag();

        controlRequestDispatcher.verify();
        assertEquals("/person/create.jsp?user=Santa+Claus", request.getRequestDispatherString());
        assertEquals("", writer.toString());
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.