Package org.richfaces.component.html

Examples of org.richfaces.component.html.HtmlColumn


     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlColumn comp = (HtmlColumn) component;
             
            if (this._breakBefore != null) {
        if (this._breakBefore.isLiteralText()) {
          try {
                       
            Boolean __breakBefore = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._breakBefore.getExpressionString(),
                      Boolean.class);
         
                        comp.setBreakBefore(__breakBefore.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("breakBefore", this._breakBefore);
        }
      }
                        
            if (this._colspan != null) {
        if (this._colspan.isLiteralText()) {
          try {
                       
            Integer __colspan = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._colspan.getExpressionString(),
                      Integer.class);
         
                        comp.setColspan(__colspan.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("colspan", this._colspan);
        }
      }
                        
            if (this._comparator != null) {
        if (this._comparator.isLiteralText()) {
          try {
                       
            java.util.Comparator __comparator = (java.util.Comparator) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._comparator.getExpressionString(),
                      java.util.Comparator.class);
         
                        comp.setComparator(__comparator);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("comparator", this._comparator);
        }
      }
                                   if(null != this._filterBy && this._filterBy.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.Column with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property filterBy");
        }
      
            if (this._filterBy != null) {
        if (this._filterBy.isLiteralText()) {
          try {
                       
            java.lang.Object __filterBy = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._filterBy.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setFilterBy(__filterBy);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("filterBy", this._filterBy);
        }
      }
                        
            if (this._filterEvent != null) {
        if (this._filterEvent.isLiteralText()) {
          try {
                       
            java.lang.String __filterEvent = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._filterEvent.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFilterEvent(__filterEvent);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("filterEvent", this._filterEvent);
        }
      }
                                 if(null != this._filterExpression && this._filterExpression.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.Column with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property filterExpression");
        }
      
            if (this._filterExpression != null) {
        if (this._filterExpression.isLiteralText()) {
          try {
                       
            Boolean __filterExpression = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._filterExpression.getExpressionString(),
                      Boolean.class);
         
                        comp.setFilterExpression(__filterExpression.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("filterExpression", this._filterExpression);
        }
      }
                         if(null != this._filterMethod){
        ((HtmlColumn)component).setFilterMethod(this._filterMethod);
      }   
                  
            if (this._filterValue != null) {
        if (this._filterValue.isLiteralText()) {
          try {
                       
            java.lang.String __filterValue = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._filterValue.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFilterValue(__filterValue);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("filterValue", this._filterValue);
        }
      }
                         
            if (this._footerClass != null) {
        if (this._footerClass.isLiteralText()) {
          try {
                       
            java.lang.String __footerClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._footerClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFooterClass(__footerClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("footerClass", this._footerClass);
        }
      }
                         
            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);
        }
      }
                         
            if (this._label != null) {
        if (this._label.isLiteralText()) {
          try {
                       
            java.lang.String __label = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._label.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLabel(__label);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("label", this._label);
        }
      }
                          
            if (this._rowspan != null) {
        if (this._rowspan.isLiteralText()) {
          try {
                       
            Integer __rowspan = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rowspan.getExpressionString(),
                      Integer.class);
         
                        comp.setRowspan(__rowspan.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rowspan", this._rowspan);
        }
      }
                        
            if (this._selfSorted != null) {
        if (this._selfSorted.isLiteralText()) {
          try {
                       
            Boolean __selfSorted = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selfSorted.getExpressionString(),
                      Boolean.class);
         
                        comp.setSelfSorted(__selfSorted.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selfSorted", this._selfSorted);
        }
      }
                        
            if (this._sortBy != null) {
        if (this._sortBy.isLiteralText()) {
          try {
                       
            java.lang.Object __sortBy = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortBy.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setSortBy(__sortBy);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortBy", this._sortBy);
        }
      }
                        
            if (this._sortExpression != null) {
        if (this._sortExpression.isLiteralText()) {
          try {
                       
            java.lang.String __sortExpression = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortExpression.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortExpression(__sortExpression);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortExpression", this._sortExpression);
        }
      }
                         
            if (this._sortIcon != null) {
        if (this._sortIcon.isLiteralText()) {
          try {
                       
            java.lang.String __sortIcon = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortIcon.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortIcon(__sortIcon);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortIcon", this._sortIcon);
        }
      }
                        
            if (this._sortIconAscending != null) {
        if (this._sortIconAscending.isLiteralText()) {
          try {
                       
            java.lang.String __sortIconAscending = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortIconAscending.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortIconAscending(__sortIconAscending);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortIconAscending", this._sortIconAscending);
        }
      }
                        
            if (this._sortIconDescending != null) {
        if (this._sortIconDescending.isLiteralText()) {
          try {
                       
            java.lang.String __sortIconDescending = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortIconDescending.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortIconDescending(__sortIconDescending);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortIconDescending", this._sortIconDescending);
        }
      }
                        
            if (this._sortOrder != null) {
        if (this._sortOrder.isLiteralText()) {
          try {
                       
            org.richfaces.model.Ordering __sortOrder = (org.richfaces.model.Ordering) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortOrder.getExpressionString(),
                      org.richfaces.model.Ordering.class);
         
                        comp.setSortOrder(__sortOrder);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortOrder", this._sortOrder);
        }
      }
                        
            if (this._sortable != null) {
        if (this._sortable.isLiteralText()) {
          try {
                       
            Boolean __sortable = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortable.getExpressionString(),
                      Boolean.class);
         
                        comp.setSortable(__sortable.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortable", this._sortable);
        }
      }
                           
            if (this._visible != null) {
        if (this._visible.isLiteralText()) {
          try {
                       
            Boolean __visible = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._visible.getExpressionString(),
                      Boolean.class);
         
                        comp.setVisible(__visible.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("visible", this._visible);
        }
      }
                        
            if (this._width != null) {
        if (this._width.isLiteralText()) {
          try {
                       
            java.lang.String __width = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._width.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setWidth(__width);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("width", this._width);
View Full Code Here


     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlColumn comp = (HtmlColumn) component;
             
            if (this._breakBefore != null) {
        if (this._breakBefore.isLiteralText()) {
          try {
                       
            Boolean __breakBefore = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._breakBefore.getExpressionString(),
                      Boolean.class);
         
                        comp.setBreakBefore(__breakBefore.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("breakBefore", this._breakBefore);
        }
      }
                        
            if (this._colspan != null) {
        if (this._colspan.isLiteralText()) {
          try {
                       
            Integer __colspan = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._colspan.getExpressionString(),
                      Integer.class);
         
                        comp.setColspan(__colspan.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("colspan", this._colspan);
        }
      }
                        
            if (this._comparator != null) {
        if (this._comparator.isLiteralText()) {
          try {
                       
            java.util.Comparator __comparator = (java.util.Comparator) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._comparator.getExpressionString(),
                      java.util.Comparator.class);
         
                        comp.setComparator(__comparator);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("comparator", this._comparator);
        }
      }
                                   if(null != this._filterBy && this._filterBy.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.Column with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property filterBy");
        }
      
            if (this._filterBy != null) {
        if (this._filterBy.isLiteralText()) {
          try {
                       
            java.lang.Object __filterBy = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._filterBy.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setFilterBy(__filterBy);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("filterBy", this._filterBy);
        }
      }
                        
            if (this._filterEvent != null) {
        if (this._filterEvent.isLiteralText()) {
          try {
                       
            java.lang.String __filterEvent = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._filterEvent.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFilterEvent(__filterEvent);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("filterEvent", this._filterEvent);
        }
      }
                                 if(null != this._filterExpression && this._filterExpression.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.Column with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property filterExpression");
        }
      
            if (this._filterExpression != null) {
        if (this._filterExpression.isLiteralText()) {
          try {
                       
            Boolean __filterExpression = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._filterExpression.getExpressionString(),
                      Boolean.class);
         
                        comp.setFilterExpression(__filterExpression.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("filterExpression", this._filterExpression);
        }
      }
                         if(null != this._filterMethod){
        ((HtmlColumn)component).setFilterMethod(this._filterMethod);
      }   
                  
            if (this._filterValue != null) {
        if (this._filterValue.isLiteralText()) {
          try {
                       
            java.lang.String __filterValue = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._filterValue.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFilterValue(__filterValue);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("filterValue", this._filterValue);
        }
      }
                         
            if (this._footerClass != null) {
        if (this._footerClass.isLiteralText()) {
          try {
                       
            java.lang.String __footerClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._footerClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFooterClass(__footerClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("footerClass", this._footerClass);
        }
      }
                         
            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);
        }
      }
                         
            if (this._label != null) {
        if (this._label.isLiteralText()) {
          try {
                       
            java.lang.String __label = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._label.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLabel(__label);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("label", this._label);
        }
      }
                          
            if (this._rowspan != null) {
        if (this._rowspan.isLiteralText()) {
          try {
                       
            Integer __rowspan = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rowspan.getExpressionString(),
                      Integer.class);
         
                        comp.setRowspan(__rowspan.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rowspan", this._rowspan);
        }
      }
                        
            if (this._selfSorted != null) {
        if (this._selfSorted.isLiteralText()) {
          try {
                       
            Boolean __selfSorted = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selfSorted.getExpressionString(),
                      Boolean.class);
         
                        comp.setSelfSorted(__selfSorted.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selfSorted", this._selfSorted);
        }
      }
                        
            if (this._sortBy != null) {
        if (this._sortBy.isLiteralText()) {
          try {
                       
            java.lang.Object __sortBy = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortBy.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setSortBy(__sortBy);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortBy", this._sortBy);
        }
      }
                        
            if (this._sortExpression != null) {
        if (this._sortExpression.isLiteralText()) {
          try {
                       
            java.lang.String __sortExpression = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortExpression.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortExpression(__sortExpression);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortExpression", this._sortExpression);
        }
      }
                         
            if (this._sortIcon != null) {
        if (this._sortIcon.isLiteralText()) {
          try {
                       
            java.lang.String __sortIcon = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortIcon.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortIcon(__sortIcon);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortIcon", this._sortIcon);
        }
      }
                        
            if (this._sortIconAscending != null) {
        if (this._sortIconAscending.isLiteralText()) {
          try {
                       
            java.lang.String __sortIconAscending = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortIconAscending.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortIconAscending(__sortIconAscending);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortIconAscending", this._sortIconAscending);
        }
      }
                        
            if (this._sortIconDescending != null) {
        if (this._sortIconDescending.isLiteralText()) {
          try {
                       
            java.lang.String __sortIconDescending = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortIconDescending.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortIconDescending(__sortIconDescending);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortIconDescending", this._sortIconDescending);
        }
      }
                        
            if (this._sortOrder != null) {
        if (this._sortOrder.isLiteralText()) {
          try {
                       
            org.richfaces.model.Ordering __sortOrder = (org.richfaces.model.Ordering) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortOrder.getExpressionString(),
                      org.richfaces.model.Ordering.class);
         
                        comp.setSortOrder(__sortOrder);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortOrder", this._sortOrder);
        }
      }
                        
            if (this._sortable != null) {
        if (this._sortable.isLiteralText()) {
          try {
                       
            Boolean __sortable = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortable.getExpressionString(),
                      Boolean.class);
         
                        comp.setSortable(__sortable.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortable", this._sortable);
        }
      }
                           
            if (this._visible != null) {
        if (this._visible.isLiteralText()) {
          try {
                       
            Boolean __visible = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._visible.getExpressionString(),
                      Boolean.class);
         
                        comp.setVisible(__visible.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("visible", this._visible);
        }
      }
                        
            if (this._width != null) {
        if (this._width.isLiteralText()) {
          try {
                       
            java.lang.String __width = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._width.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setWidth(__width);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("width", this._width);
View Full Code Here

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlColumn comp = (HtmlColumn) component;
             
            if (this._breakBefore != null) {
        if (this._breakBefore.isLiteralText()) {
          try {
                       
            Boolean __breakBefore = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._breakBefore.getExpressionString(),
                      Boolean.class);
         
                        comp.setBreakBefore(__breakBefore.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("breakBefore", this._breakBefore);
        }
      }
                        
            if (this._colspan != null) {
        if (this._colspan.isLiteralText()) {
          try {
                       
            Integer __colspan = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._colspan.getExpressionString(),
                      Integer.class);
         
                        comp.setColspan(__colspan.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("colspan", this._colspan);
        }
      }
                        
            if (this._comparator != null) {
        if (this._comparator.isLiteralText()) {
          try {
                       
            java.util.Comparator __comparator = (java.util.Comparator) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._comparator.getExpressionString(),
                      java.util.Comparator.class);
         
                        comp.setComparator(__comparator);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("comparator", this._comparator);
        }
      }
                                   if(null != this._filterBy && this._filterBy.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.Column with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property filterBy");
        }
      
            if (this._filterBy != null) {
        if (this._filterBy.isLiteralText()) {
          try {
                       
            java.lang.Object __filterBy = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._filterBy.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setFilterBy(__filterBy);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("filterBy", this._filterBy);
        }
      }
                        
            if (this._filterEvent != null) {
        if (this._filterEvent.isLiteralText()) {
          try {
                       
            java.lang.String __filterEvent = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._filterEvent.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFilterEvent(__filterEvent);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("filterEvent", this._filterEvent);
        }
      }
                                 if(null != this._filterExpression && this._filterExpression.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.Column with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property filterExpression");
        }
      
            if (this._filterExpression != null) {
        if (this._filterExpression.isLiteralText()) {
          try {
                       
            Boolean __filterExpression = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._filterExpression.getExpressionString(),
                      Boolean.class);
         
                        comp.setFilterExpression(__filterExpression.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("filterExpression", this._filterExpression);
        }
      }
                         if(null != this._filterMethod){
        ((HtmlColumn)component).setFilterMethod(this._filterMethod);
      }   
                  
            if (this._filterValue != null) {
        if (this._filterValue.isLiteralText()) {
          try {
                       
            java.lang.String __filterValue = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._filterValue.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFilterValue(__filterValue);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("filterValue", this._filterValue);
        }
      }
                         
            if (this._footerClass != null) {
        if (this._footerClass.isLiteralText()) {
          try {
                       
            java.lang.String __footerClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._footerClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFooterClass(__footerClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("footerClass", this._footerClass);
        }
      }
                         
            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);
        }
      }
                         
            if (this._label != null) {
        if (this._label.isLiteralText()) {
          try {
                       
            java.lang.String __label = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._label.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLabel(__label);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("label", this._label);
        }
      }
                          
            if (this._rowspan != null) {
        if (this._rowspan.isLiteralText()) {
          try {
                       
            Integer __rowspan = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rowspan.getExpressionString(),
                      Integer.class);
         
                        comp.setRowspan(__rowspan.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rowspan", this._rowspan);
        }
      }
                        
            if (this._selfSorted != null) {
        if (this._selfSorted.isLiteralText()) {
          try {
                       
            Boolean __selfSorted = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selfSorted.getExpressionString(),
                      Boolean.class);
         
                        comp.setSelfSorted(__selfSorted.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selfSorted", this._selfSorted);
        }
      }
                        
            if (this._sortBy != null) {
        if (this._sortBy.isLiteralText()) {
          try {
                       
            java.lang.Object __sortBy = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortBy.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setSortBy(__sortBy);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortBy", this._sortBy);
        }
      }
                        
            if (this._sortExpression != null) {
        if (this._sortExpression.isLiteralText()) {
          try {
                       
            java.lang.String __sortExpression = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortExpression.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortExpression(__sortExpression);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortExpression", this._sortExpression);
        }
      }
                         
            if (this._sortIcon != null) {
        if (this._sortIcon.isLiteralText()) {
          try {
                       
            java.lang.String __sortIcon = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortIcon.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortIcon(__sortIcon);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortIcon", this._sortIcon);
        }
      }
                        
            if (this._sortIconAscending != null) {
        if (this._sortIconAscending.isLiteralText()) {
          try {
                       
            java.lang.String __sortIconAscending = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortIconAscending.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortIconAscending(__sortIconAscending);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortIconAscending", this._sortIconAscending);
        }
      }
                        
            if (this._sortIconDescending != null) {
        if (this._sortIconDescending.isLiteralText()) {
          try {
                       
            java.lang.String __sortIconDescending = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortIconDescending.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortIconDescending(__sortIconDescending);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortIconDescending", this._sortIconDescending);
        }
      }
                        
            if (this._sortOrder != null) {
        if (this._sortOrder.isLiteralText()) {
          try {
                       
            org.richfaces.model.Ordering __sortOrder = (org.richfaces.model.Ordering) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortOrder.getExpressionString(),
                      org.richfaces.model.Ordering.class);
         
                        comp.setSortOrder(__sortOrder);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortOrder", this._sortOrder);
        }
      }
                        
            if (this._sortable != null) {
        if (this._sortable.isLiteralText()) {
          try {
                       
            Boolean __sortable = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortable.getExpressionString(),
                      Boolean.class);
         
                        comp.setSortable(__sortable.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortable", this._sortable);
        }
      }
                           
            if (this._visible != null) {
        if (this._visible.isLiteralText()) {
          try {
                       
            Boolean __visible = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._visible.getExpressionString(),
                      Boolean.class);
         
                        comp.setVisible(__visible.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("visible", this._visible);
        }
      }
                        
            if (this._width != null) {
        if (this._width.isLiteralText()) {
          try {
                       
            java.lang.String __width = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._width.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setWidth(__width);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("width", this._width);
View Full Code Here

    assertTrue(count == 5);

    UIComponent component = dataTable.getChildren().get(0);
    assertTrue(component instanceof UIColumn);

    HtmlColumn column = (HtmlColumn) component;
    assertTrue("color: Red;".equals(column.getStyle()));
    assertTrue("100px;".equals(column.getWidth()));

    column = (HtmlColumn)dataTable.getChildren().get(4);
    UIComponent facet = column.getFacet("header");
    assertNotNull(facet);
    assertTrue(facet instanceof UIOutput);
    UIOutput output = (UIOutput)facet;
   
    assertTrue(component.getChildCount() == 1 );
View Full Code Here

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlColumn comp = (HtmlColumn) component;
             
            if (this._breakBefore != null) {
        if (this._breakBefore.isLiteralText()) {
          try {
                       
            Boolean __breakBefore = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._breakBefore.getExpressionString(),
                      Boolean.class);
         
                        comp.setBreakBefore(__breakBefore.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("breakBefore", this._breakBefore);
        }
      }
                        
            if (this._colspan != null) {
        if (this._colspan.isLiteralText()) {
          try {
                       
            Integer __colspan = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._colspan.getExpressionString(),
                      Integer.class);
         
                        comp.setColspan(__colspan.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("colspan", this._colspan);
        }
      }
                        
            if (this._comparator != null) {
        if (this._comparator.isLiteralText()) {
          try {
                       
            java.util.Comparator __comparator = (java.util.Comparator) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._comparator.getExpressionString(),
                      java.util.Comparator.class);
         
                        comp.setComparator(__comparator);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("comparator", this._comparator);
        }
      }
                                   if(null != this._filterBy && this._filterBy.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.Column with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property filterBy");
        }
      
            if (this._filterBy != null) {
        if (this._filterBy.isLiteralText()) {
          try {
                       
            java.lang.Object __filterBy = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._filterBy.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setFilterBy(__filterBy);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("filterBy", this._filterBy);
        }
      }
                        
            if (this._filterEvent != null) {
        if (this._filterEvent.isLiteralText()) {
          try {
                       
            java.lang.String __filterEvent = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._filterEvent.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFilterEvent(__filterEvent);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("filterEvent", this._filterEvent);
        }
      }
                                 if(null != this._filterExpression && this._filterExpression.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.Column with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property filterExpression");
        }
      
            if (this._filterExpression != null) {
        if (this._filterExpression.isLiteralText()) {
          try {
                       
            Boolean __filterExpression = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._filterExpression.getExpressionString(),
                      Boolean.class);
         
                        comp.setFilterExpression(__filterExpression.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("filterExpression", this._filterExpression);
        }
      }
                         if(null != this._filterMethod){
        ((HtmlColumn)component).setFilterMethod(this._filterMethod);
      }   
                  
            if (this._filterValue != null) {
        if (this._filterValue.isLiteralText()) {
          try {
                       
            java.lang.String __filterValue = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._filterValue.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFilterValue(__filterValue);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("filterValue", this._filterValue);
        }
      }
                         
            if (this._footerClass != null) {
        if (this._footerClass.isLiteralText()) {
          try {
                       
            java.lang.String __footerClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._footerClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFooterClass(__footerClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("footerClass", this._footerClass);
        }
      }
                         
            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);
        }
      }
                         
            if (this._label != null) {
        if (this._label.isLiteralText()) {
          try {
                       
            java.lang.String __label = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._label.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLabel(__label);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("label", this._label);
        }
      }
                          
            if (this._rowspan != null) {
        if (this._rowspan.isLiteralText()) {
          try {
                       
            Integer __rowspan = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rowspan.getExpressionString(),
                      Integer.class);
         
                        comp.setRowspan(__rowspan.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rowspan", this._rowspan);
        }
      }
                        
            if (this._selfSorted != null) {
        if (this._selfSorted.isLiteralText()) {
          try {
                       
            Boolean __selfSorted = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selfSorted.getExpressionString(),
                      Boolean.class);
         
                        comp.setSelfSorted(__selfSorted.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selfSorted", this._selfSorted);
        }
      }
                        
            if (this._sortBy != null) {
        if (this._sortBy.isLiteralText()) {
          try {
                       
            java.lang.Object __sortBy = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortBy.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setSortBy(__sortBy);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortBy", this._sortBy);
        }
      }
                        
            if (this._sortExpression != null) {
        if (this._sortExpression.isLiteralText()) {
          try {
                       
            java.lang.String __sortExpression = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortExpression.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortExpression(__sortExpression);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortExpression", this._sortExpression);
        }
      }
                         
            if (this._sortIcon != null) {
        if (this._sortIcon.isLiteralText()) {
          try {
                       
            java.lang.String __sortIcon = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortIcon.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortIcon(__sortIcon);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortIcon", this._sortIcon);
        }
      }
                        
            if (this._sortIconAscending != null) {
        if (this._sortIconAscending.isLiteralText()) {
          try {
                       
            java.lang.String __sortIconAscending = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortIconAscending.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortIconAscending(__sortIconAscending);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortIconAscending", this._sortIconAscending);
        }
      }
                        
            if (this._sortIconDescending != null) {
        if (this._sortIconDescending.isLiteralText()) {
          try {
                       
            java.lang.String __sortIconDescending = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortIconDescending.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortIconDescending(__sortIconDescending);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortIconDescending", this._sortIconDescending);
        }
      }
                        
            if (this._sortOrder != null) {
        if (this._sortOrder.isLiteralText()) {
          try {
                       
            org.richfaces.model.Ordering __sortOrder = (org.richfaces.model.Ordering) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortOrder.getExpressionString(),
                      org.richfaces.model.Ordering.class);
         
                        comp.setSortOrder(__sortOrder);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortOrder", this._sortOrder);
        }
      }
                        
            if (this._sortable != null) {
        if (this._sortable.isLiteralText()) {
          try {
                       
            Boolean __sortable = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortable.getExpressionString(),
                      Boolean.class);
         
                        comp.setSortable(__sortable.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortable", this._sortable);
        }
      }
                           
            if (this._visible != null) {
        if (this._visible.isLiteralText()) {
          try {
                       
            Boolean __visible = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._visible.getExpressionString(),
                      Boolean.class);
         
                        comp.setVisible(__visible.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("visible", this._visible);
        }
      }
                        
            if (this._width != null) {
        if (this._width.isLiteralText()) {
          try {
                       
            java.lang.String __width = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._width.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setWidth(__width);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("width", this._width);
View Full Code Here

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlColumn comp = (HtmlColumn) component;
             
            if (this._breakBefore != null) {
        if (this._breakBefore.isLiteralText()) {
          try {
                       
            Boolean __breakBefore = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._breakBefore.getExpressionString(),
                      Boolean.class);
         
                        comp.setBreakBefore(__breakBefore.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("breakBefore", this._breakBefore);
        }
      }
                        
            if (this._colspan != null) {
        if (this._colspan.isLiteralText()) {
          try {
                       
            Integer __colspan = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._colspan.getExpressionString(),
                      Integer.class);
         
                        comp.setColspan(__colspan.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("colspan", this._colspan);
        }
      }
                        
            if (this._comparator != null) {
        if (this._comparator.isLiteralText()) {
          try {
                       
            java.util.Comparator __comparator = (java.util.Comparator) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._comparator.getExpressionString(),
                      java.util.Comparator.class);
         
                        comp.setComparator(__comparator);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("comparator", this._comparator);
        }
      }
                                   if(null != this._filterBy && this._filterBy.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.Column with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property filterBy");
        }
      
            if (this._filterBy != null) {
        if (this._filterBy.isLiteralText()) {
          try {
                       
            java.lang.Object __filterBy = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._filterBy.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setFilterBy(__filterBy);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("filterBy", this._filterBy);
        }
      }
                        
            if (this._filterEvent != null) {
        if (this._filterEvent.isLiteralText()) {
          try {
                       
            java.lang.String __filterEvent = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._filterEvent.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFilterEvent(__filterEvent);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("filterEvent", this._filterEvent);
        }
      }
                                 if(null != this._filterExpression && this._filterExpression.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.Column with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property filterExpression");
        }
      
            if (this._filterExpression != null) {
        if (this._filterExpression.isLiteralText()) {
          try {
                       
            Boolean __filterExpression = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._filterExpression.getExpressionString(),
                      Boolean.class);
         
                        comp.setFilterExpression(__filterExpression.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("filterExpression", this._filterExpression);
        }
      }
                         if(null != this._filterMethod){
        ((HtmlColumn)component).setFilterMethod(this._filterMethod);
      }   
                  
            if (this._filterValue != null) {
        if (this._filterValue.isLiteralText()) {
          try {
                       
            java.lang.String __filterValue = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._filterValue.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFilterValue(__filterValue);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("filterValue", this._filterValue);
        }
      }
                         
            if (this._footerClass != null) {
        if (this._footerClass.isLiteralText()) {
          try {
                       
            java.lang.String __footerClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._footerClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFooterClass(__footerClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("footerClass", this._footerClass);
        }
      }
                         
            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);
        }
      }
                         
            if (this._label != null) {
        if (this._label.isLiteralText()) {
          try {
                       
            java.lang.String __label = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._label.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLabel(__label);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("label", this._label);
        }
      }
                          
            if (this._rowspan != null) {
        if (this._rowspan.isLiteralText()) {
          try {
                       
            Integer __rowspan = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rowspan.getExpressionString(),
                      Integer.class);
         
                        comp.setRowspan(__rowspan.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rowspan", this._rowspan);
        }
      }
                        
            if (this._selfSorted != null) {
        if (this._selfSorted.isLiteralText()) {
          try {
                       
            Boolean __selfSorted = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selfSorted.getExpressionString(),
                      Boolean.class);
         
                        comp.setSelfSorted(__selfSorted.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selfSorted", this._selfSorted);
        }
      }
                        
            if (this._sortBy != null) {
        if (this._sortBy.isLiteralText()) {
          try {
                       
            java.lang.Object __sortBy = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortBy.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setSortBy(__sortBy);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortBy", this._sortBy);
        }
      }
                        
            if (this._sortExpression != null) {
        if (this._sortExpression.isLiteralText()) {
          try {
                       
            java.lang.String __sortExpression = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortExpression.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortExpression(__sortExpression);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortExpression", this._sortExpression);
        }
      }
                         
            if (this._sortIcon != null) {
        if (this._sortIcon.isLiteralText()) {
          try {
                       
            java.lang.String __sortIcon = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortIcon.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortIcon(__sortIcon);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortIcon", this._sortIcon);
        }
      }
                        
            if (this._sortIconAscending != null) {
        if (this._sortIconAscending.isLiteralText()) {
          try {
                       
            java.lang.String __sortIconAscending = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortIconAscending.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortIconAscending(__sortIconAscending);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortIconAscending", this._sortIconAscending);
        }
      }
                        
            if (this._sortIconDescending != null) {
        if (this._sortIconDescending.isLiteralText()) {
          try {
                       
            java.lang.String __sortIconDescending = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortIconDescending.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortIconDescending(__sortIconDescending);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortIconDescending", this._sortIconDescending);
        }
      }
                        
            if (this._sortOrder != null) {
        if (this._sortOrder.isLiteralText()) {
          try {
                       
            org.richfaces.model.Ordering __sortOrder = (org.richfaces.model.Ordering) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortOrder.getExpressionString(),
                      org.richfaces.model.Ordering.class);
         
                        comp.setSortOrder(__sortOrder);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortOrder", this._sortOrder);
        }
      }
                        
            if (this._sortable != null) {
        if (this._sortable.isLiteralText()) {
          try {
                       
            Boolean __sortable = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortable.getExpressionString(),
                      Boolean.class);
         
                        comp.setSortable(__sortable.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortable", this._sortable);
        }
      }
                           
            if (this._visible != null) {
        if (this._visible.isLiteralText()) {
          try {
                       
            Boolean __visible = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._visible.getExpressionString(),
                      Boolean.class);
         
                        comp.setVisible(__visible.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("visible", this._visible);
        }
      }
                        
            if (this._width != null) {
        if (this._width.isLiteralText()) {
          try {
                       
            java.lang.String __width = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._width.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setWidth(__width);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("width", this._width);
View Full Code Here

TOP

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

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.