Package org.richfaces.component.html

Examples of org.richfaces.component.html.HtmlDataGrid


     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlDataGrid comp = (HtmlDataGrid) component;
            
            if (this._ajaxKeys != null) {
        if (this._ajaxKeys.isLiteralText()) {
          try {
                       
            java.util.Set __ajaxKeys = (java.util.Set) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ajaxKeys.getExpressionString(),
                      java.util.Set.class);
         
                        comp.setAjaxKeys(__ajaxKeys);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ajaxKeys", this._ajaxKeys);
        }
      }
                        
            if (this._align != null) {
        if (this._align.isLiteralText()) {
          try {
                       
            java.lang.String __align = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._align.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAlign(__align);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("align", this._align);
        }
      }
                         
            if (this._bgcolor != null) {
        if (this._bgcolor.isLiteralText()) {
          try {
                       
            java.lang.String __bgcolor = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._bgcolor.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setBgcolor(__bgcolor);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("bgcolor", this._bgcolor);
        }
      }
                         
            if (this._border != null) {
        if (this._border.isLiteralText()) {
          try {
                       
            java.lang.String __border = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._border.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setBorder(__border);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("border", this._border);
        }
      }
                        
            if (this._captionClass != null) {
        if (this._captionClass.isLiteralText()) {
          try {
                       
            java.lang.String __captionClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._captionClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCaptionClass(__captionClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("captionClass", this._captionClass);
        }
      }
                        
            if (this._captionStyle != null) {
        if (this._captionStyle.isLiteralText()) {
          try {
                       
            java.lang.String __captionStyle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._captionStyle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCaptionStyle(__captionStyle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("captionStyle", this._captionStyle);
        }
      }
                        
            if (this._cellpadding != null) {
        if (this._cellpadding.isLiteralText()) {
          try {
                       
            java.lang.String __cellpadding = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cellpadding.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCellpadding(__cellpadding);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cellpadding", this._cellpadding);
        }
      }
                        
            if (this._cellspacing != null) {
        if (this._cellspacing.isLiteralText()) {
          try {
                       
            java.lang.String __cellspacing = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cellspacing.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCellspacing(__cellspacing);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cellspacing", this._cellspacing);
        }
      }
                        
            if (this._columnClasses != null) {
        if (this._columnClasses.isLiteralText()) {
          try {
                       
            java.lang.String __columnClasses = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._columnClasses.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setColumnClasses(__columnClasses);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("columnClasses", this._columnClasses);
        }
      }
                        
            if (this._columns != null) {
        if (this._columns.isLiteralText()) {
          try {
                       
            Integer __columns = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._columns.getExpressionString(),
                      Integer.class);
         
                        comp.setColumns(__columns.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("columns", this._columns);
        }
      }
                        
            if (this._componentState != null) {
        if (this._componentState.isLiteralText()) {
          try {
                       
            org.ajax4jsf.model.DataComponentState __componentState = (org.ajax4jsf.model.DataComponentState) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._componentState.getExpressionString(),
                      org.ajax4jsf.model.DataComponentState.class);
         
                        comp.setComponentState(__componentState);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("componentState", this._componentState);
        }
      }
                         
            if (this._elements != null) {
        if (this._elements.isLiteralText()) {
          try {
                       
            Integer __elements = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._elements.getExpressionString(),
                      Integer.class);
         
                        comp.setElements(__elements.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("elements", this._elements);
        }
      }
                         
            if (this._first != null) {
        if (this._first.isLiteralText()) {
          try {
                       
            Integer __first = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._first.getExpressionString(),
                      Integer.class);
         
                        comp.setFirst(__first.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("first", this._first);
        }
      }
                         
            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._frame != null) {
        if (this._frame.isLiteralText()) {
          try {
                       
            java.lang.String __frame = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._frame.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFrame(__frame);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("frame", this._frame);
        }
      }
                         
            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._onRowClick != null) {
        if (this._onRowClick.isLiteralText()) {
          try {
                       
            java.lang.String __onRowClick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onRowClick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnRowClick(__onRowClick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onRowClick", this._onRowClick);
        }
      }
                        
            if (this._onRowDblClick != null) {
        if (this._onRowDblClick.isLiteralText()) {
          try {
                       
            java.lang.String __onRowDblClick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onRowDblClick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnRowDblClick(__onRowDblClick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onRowDblClick", this._onRowDblClick);
        }
      }
                        
            if (this._onRowMouseDown != null) {
        if (this._onRowMouseDown.isLiteralText()) {
          try {
                       
            java.lang.String __onRowMouseDown = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onRowMouseDown.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnRowMouseDown(__onRowMouseDown);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onRowMouseDown", this._onRowMouseDown);
        }
      }
                        
            if (this._onRowMouseMove != null) {
        if (this._onRowMouseMove.isLiteralText()) {
          try {
                       
            java.lang.String __onRowMouseMove = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onRowMouseMove.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnRowMouseMove(__onRowMouseMove);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onRowMouseMove", this._onRowMouseMove);
        }
      }
                        
            if (this._onRowMouseOut != null) {
        if (this._onRowMouseOut.isLiteralText()) {
          try {
                       
            java.lang.String __onRowMouseOut = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onRowMouseOut.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnRowMouseOut(__onRowMouseOut);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onRowMouseOut", this._onRowMouseOut);
        }
      }
                        
            if (this._onRowMouseOver != null) {
        if (this._onRowMouseOver.isLiteralText()) {
          try {
                       
            java.lang.String __onRowMouseOver = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onRowMouseOver.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnRowMouseOver(__onRowMouseOver);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onRowMouseOver", this._onRowMouseOver);
        }
      }
                        
            if (this._onRowMouseUp != null) {
        if (this._onRowMouseUp.isLiteralText()) {
          try {
                       
            java.lang.String __onRowMouseUp = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onRowMouseUp.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnRowMouseUp(__onRowMouseUp);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onRowMouseUp", this._onRowMouseUp);
        }
      }
                                    
            if (this._rowClasses != null) {
        if (this._rowClasses.isLiteralText()) {
          try {
                       
            java.lang.String __rowClasses = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rowClasses.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRowClasses(__rowClasses);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rowClasses", this._rowClasses);
        }
      }
                           
            if (this._rowKey != null) {
        if (this._rowKey.isLiteralText()) {
          try {
                       
            java.lang.Object __rowKey = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rowKey.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setRowKey(__rowKey);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rowKey", this._rowKey);
        }
      }
                        setRowKeyConverterProperty(comp, this._rowKeyConverter);
                  
            if (this._rowKeyVar != null) {
        if (this._rowKeyVar.isLiteralText()) {
          try {
                       
            java.lang.String __rowKeyVar = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rowKeyVar.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRowKeyVar(__rowKeyVar);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rowKeyVar", this._rowKeyVar);
        }
      }
                         
            if (this._rules != null) {
        if (this._rules.isLiteralText()) {
          try {
                       
            java.lang.String __rules = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rules.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRules(__rules);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rules", this._rules);
        }
      }
                        
            if (this._stateVar != null) {
        if (this._stateVar.isLiteralText()) {
          try {
                       
            java.lang.String __stateVar = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stateVar.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStateVar(__stateVar);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stateVar", this._stateVar);
        }
      }
                          
            if (this._summary != null) {
        if (this._summary.isLiteralText()) {
          try {
                       
            java.lang.String __summary = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._summary.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSummary(__summary);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("summary", this._summary);
        }
      }
                         
            if (this._value != null) {
        if (this._value.isLiteralText()) {
          try {
                       
            java.lang.Object __value = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._value.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setValue(__value);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("value", this._value);
        }
      }
                        
                      if (this._var != null) {
          comp.setVar(this._var);
        }
                                
            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);
    HtmlDataGrid comp = (HtmlDataGrid) component;
            
            if (this._ajaxKeys != null) {
        if (this._ajaxKeys.isLiteralText()) {
          try {
                       
            java.util.Set __ajaxKeys = (java.util.Set) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ajaxKeys.getExpressionString(),
                      java.util.Set.class);
         
                        comp.setAjaxKeys(__ajaxKeys);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ajaxKeys", this._ajaxKeys);
        }
      }
                        
            if (this._align != null) {
        if (this._align.isLiteralText()) {
          try {
                       
            java.lang.String __align = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._align.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAlign(__align);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("align", this._align);
        }
      }
                         
            if (this._bgcolor != null) {
        if (this._bgcolor.isLiteralText()) {
          try {
                       
            java.lang.String __bgcolor = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._bgcolor.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setBgcolor(__bgcolor);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("bgcolor", this._bgcolor);
        }
      }
                         
            if (this._border != null) {
        if (this._border.isLiteralText()) {
          try {
                       
            java.lang.String __border = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._border.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setBorder(__border);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("border", this._border);
        }
      }
                        
            if (this._captionClass != null) {
        if (this._captionClass.isLiteralText()) {
          try {
                       
            java.lang.String __captionClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._captionClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCaptionClass(__captionClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("captionClass", this._captionClass);
        }
      }
                        
            if (this._captionStyle != null) {
        if (this._captionStyle.isLiteralText()) {
          try {
                       
            java.lang.String __captionStyle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._captionStyle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCaptionStyle(__captionStyle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("captionStyle", this._captionStyle);
        }
      }
                        
            if (this._cellpadding != null) {
        if (this._cellpadding.isLiteralText()) {
          try {
                       
            java.lang.String __cellpadding = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cellpadding.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCellpadding(__cellpadding);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cellpadding", this._cellpadding);
        }
      }
                        
            if (this._cellspacing != null) {
        if (this._cellspacing.isLiteralText()) {
          try {
                       
            java.lang.String __cellspacing = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cellspacing.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCellspacing(__cellspacing);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cellspacing", this._cellspacing);
        }
      }
                        
            if (this._columnClasses != null) {
        if (this._columnClasses.isLiteralText()) {
          try {
                       
            java.lang.String __columnClasses = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._columnClasses.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setColumnClasses(__columnClasses);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("columnClasses", this._columnClasses);
        }
      }
                        
            if (this._columns != null) {
        if (this._columns.isLiteralText()) {
          try {
                       
            Integer __columns = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._columns.getExpressionString(),
                      Integer.class);
         
                        comp.setColumns(__columns.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("columns", this._columns);
        }
      }
                        
            if (this._componentState != null) {
        if (this._componentState.isLiteralText()) {
          try {
                       
            org.ajax4jsf.model.DataComponentState __componentState = (org.ajax4jsf.model.DataComponentState) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._componentState.getExpressionString(),
                      org.ajax4jsf.model.DataComponentState.class);
         
                        comp.setComponentState(__componentState);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("componentState", this._componentState);
        }
      }
                         
            if (this._elements != null) {
        if (this._elements.isLiteralText()) {
          try {
                       
            Integer __elements = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._elements.getExpressionString(),
                      Integer.class);
         
                        comp.setElements(__elements.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("elements", this._elements);
        }
      }
                         
            if (this._first != null) {
        if (this._first.isLiteralText()) {
          try {
                       
            Integer __first = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._first.getExpressionString(),
                      Integer.class);
         
                        comp.setFirst(__first.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("first", this._first);
        }
      }
                         
            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._frame != null) {
        if (this._frame.isLiteralText()) {
          try {
                       
            java.lang.String __frame = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._frame.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFrame(__frame);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("frame", this._frame);
        }
      }
                         
            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._onRowClick != null) {
        if (this._onRowClick.isLiteralText()) {
          try {
                       
            java.lang.String __onRowClick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onRowClick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnRowClick(__onRowClick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onRowClick", this._onRowClick);
        }
      }
                        
            if (this._onRowDblClick != null) {
        if (this._onRowDblClick.isLiteralText()) {
          try {
                       
            java.lang.String __onRowDblClick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onRowDblClick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnRowDblClick(__onRowDblClick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onRowDblClick", this._onRowDblClick);
        }
      }
                        
            if (this._onRowMouseDown != null) {
        if (this._onRowMouseDown.isLiteralText()) {
          try {
                       
            java.lang.String __onRowMouseDown = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onRowMouseDown.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnRowMouseDown(__onRowMouseDown);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onRowMouseDown", this._onRowMouseDown);
        }
      }
                        
            if (this._onRowMouseMove != null) {
        if (this._onRowMouseMove.isLiteralText()) {
          try {
                       
            java.lang.String __onRowMouseMove = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onRowMouseMove.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnRowMouseMove(__onRowMouseMove);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onRowMouseMove", this._onRowMouseMove);
        }
      }
                        
            if (this._onRowMouseOut != null) {
        if (this._onRowMouseOut.isLiteralText()) {
          try {
                       
            java.lang.String __onRowMouseOut = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onRowMouseOut.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnRowMouseOut(__onRowMouseOut);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onRowMouseOut", this._onRowMouseOut);
        }
      }
                        
            if (this._onRowMouseOver != null) {
        if (this._onRowMouseOver.isLiteralText()) {
          try {
                       
            java.lang.String __onRowMouseOver = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onRowMouseOver.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnRowMouseOver(__onRowMouseOver);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onRowMouseOver", this._onRowMouseOver);
        }
      }
                        
            if (this._onRowMouseUp != null) {
        if (this._onRowMouseUp.isLiteralText()) {
          try {
                       
            java.lang.String __onRowMouseUp = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onRowMouseUp.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnRowMouseUp(__onRowMouseUp);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onRowMouseUp", this._onRowMouseUp);
        }
      }
                                    
            if (this._rowClasses != null) {
        if (this._rowClasses.isLiteralText()) {
          try {
                       
            java.lang.String __rowClasses = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rowClasses.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRowClasses(__rowClasses);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rowClasses", this._rowClasses);
        }
      }
                           
            if (this._rowKey != null) {
        if (this._rowKey.isLiteralText()) {
          try {
                       
            java.lang.Object __rowKey = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rowKey.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setRowKey(__rowKey);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rowKey", this._rowKey);
        }
      }
                        setRowKeyConverterProperty(comp, this._rowKeyConverter);
                  
            if (this._rowKeyVar != null) {
        if (this._rowKeyVar.isLiteralText()) {
          try {
                       
            java.lang.String __rowKeyVar = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rowKeyVar.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRowKeyVar(__rowKeyVar);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rowKeyVar", this._rowKeyVar);
        }
      }
                         
            if (this._rules != null) {
        if (this._rules.isLiteralText()) {
          try {
                       
            java.lang.String __rules = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rules.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRules(__rules);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rules", this._rules);
        }
      }
                        
            if (this._stateVar != null) {
        if (this._stateVar.isLiteralText()) {
          try {
                       
            java.lang.String __stateVar = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stateVar.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStateVar(__stateVar);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stateVar", this._stateVar);
        }
      }
                          
            if (this._summary != null) {
        if (this._summary.isLiteralText()) {
          try {
                       
            java.lang.String __summary = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._summary.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSummary(__summary);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("summary", this._summary);
        }
      }
                         
            if (this._value != null) {
        if (this._value.isLiteralText()) {
          try {
                       
            java.lang.Object __value = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._value.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setValue(__value);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("value", this._value);
        }
      }
                        
                      if (this._var != null) {
          comp.setVar(this._var);
        }
                                
            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);
    HtmlDataGrid comp = (HtmlDataGrid) component;
            
            if (this._ajaxKeys != null) {
        if (this._ajaxKeys.isLiteralText()) {
          try {
                       
            java.util.Set __ajaxKeys = (java.util.Set) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ajaxKeys.getExpressionString(),
                      java.util.Set.class);
         
                        comp.setAjaxKeys(__ajaxKeys);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ajaxKeys", this._ajaxKeys);
        }
      }
                        
            if (this._align != null) {
        if (this._align.isLiteralText()) {
          try {
                       
            java.lang.String __align = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._align.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAlign(__align);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("align", this._align);
        }
      }
                         
            if (this._bgcolor != null) {
        if (this._bgcolor.isLiteralText()) {
          try {
                       
            java.lang.String __bgcolor = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._bgcolor.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setBgcolor(__bgcolor);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("bgcolor", this._bgcolor);
        }
      }
                         
            if (this._border != null) {
        if (this._border.isLiteralText()) {
          try {
                       
            java.lang.String __border = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._border.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setBorder(__border);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("border", this._border);
        }
      }
                        
            if (this._captionClass != null) {
        if (this._captionClass.isLiteralText()) {
          try {
                       
            java.lang.String __captionClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._captionClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCaptionClass(__captionClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("captionClass", this._captionClass);
        }
      }
                        
            if (this._captionStyle != null) {
        if (this._captionStyle.isLiteralText()) {
          try {
                       
            java.lang.String __captionStyle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._captionStyle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCaptionStyle(__captionStyle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("captionStyle", this._captionStyle);
        }
      }
                        
            if (this._cellpadding != null) {
        if (this._cellpadding.isLiteralText()) {
          try {
                       
            java.lang.String __cellpadding = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cellpadding.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCellpadding(__cellpadding);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cellpadding", this._cellpadding);
        }
      }
                        
            if (this._cellspacing != null) {
        if (this._cellspacing.isLiteralText()) {
          try {
                       
            java.lang.String __cellspacing = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._cellspacing.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCellspacing(__cellspacing);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("cellspacing", this._cellspacing);
        }
      }
                        
            if (this._columnClasses != null) {
        if (this._columnClasses.isLiteralText()) {
          try {
                       
            java.lang.String __columnClasses = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._columnClasses.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setColumnClasses(__columnClasses);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("columnClasses", this._columnClasses);
        }
      }
                        
            if (this._columns != null) {
        if (this._columns.isLiteralText()) {
          try {
                       
            Integer __columns = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._columns.getExpressionString(),
                      Integer.class);
         
                        comp.setColumns(__columns.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("columns", this._columns);
        }
      }
                        
            if (this._componentState != null) {
        if (this._componentState.isLiteralText()) {
          try {
                       
            org.ajax4jsf.model.DataComponentState __componentState = (org.ajax4jsf.model.DataComponentState) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._componentState.getExpressionString(),
                      org.ajax4jsf.model.DataComponentState.class);
         
                        comp.setComponentState(__componentState);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("componentState", this._componentState);
        }
      }
                         
            if (this._elements != null) {
        if (this._elements.isLiteralText()) {
          try {
                       
            Integer __elements = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._elements.getExpressionString(),
                      Integer.class);
         
                        comp.setElements(__elements.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("elements", this._elements);
        }
      }
                         
            if (this._first != null) {
        if (this._first.isLiteralText()) {
          try {
                       
            Integer __first = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._first.getExpressionString(),
                      Integer.class);
         
                        comp.setFirst(__first.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("first", this._first);
        }
      }
                         
            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._frame != null) {
        if (this._frame.isLiteralText()) {
          try {
                       
            java.lang.String __frame = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._frame.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFrame(__frame);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("frame", this._frame);
        }
      }
                         
            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._onRowClick != null) {
        if (this._onRowClick.isLiteralText()) {
          try {
                       
            java.lang.String __onRowClick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onRowClick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnRowClick(__onRowClick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onRowClick", this._onRowClick);
        }
      }
                        
            if (this._onRowDblClick != null) {
        if (this._onRowDblClick.isLiteralText()) {
          try {
                       
            java.lang.String __onRowDblClick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onRowDblClick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnRowDblClick(__onRowDblClick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onRowDblClick", this._onRowDblClick);
        }
      }
                        
            if (this._onRowMouseDown != null) {
        if (this._onRowMouseDown.isLiteralText()) {
          try {
                       
            java.lang.String __onRowMouseDown = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onRowMouseDown.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnRowMouseDown(__onRowMouseDown);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onRowMouseDown", this._onRowMouseDown);
        }
      }
                        
            if (this._onRowMouseMove != null) {
        if (this._onRowMouseMove.isLiteralText()) {
          try {
                       
            java.lang.String __onRowMouseMove = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onRowMouseMove.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnRowMouseMove(__onRowMouseMove);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onRowMouseMove", this._onRowMouseMove);
        }
      }
                        
            if (this._onRowMouseOut != null) {
        if (this._onRowMouseOut.isLiteralText()) {
          try {
                       
            java.lang.String __onRowMouseOut = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onRowMouseOut.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnRowMouseOut(__onRowMouseOut);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onRowMouseOut", this._onRowMouseOut);
        }
      }
                        
            if (this._onRowMouseOver != null) {
        if (this._onRowMouseOver.isLiteralText()) {
          try {
                       
            java.lang.String __onRowMouseOver = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onRowMouseOver.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnRowMouseOver(__onRowMouseOver);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onRowMouseOver", this._onRowMouseOver);
        }
      }
                        
            if (this._onRowMouseUp != null) {
        if (this._onRowMouseUp.isLiteralText()) {
          try {
                       
            java.lang.String __onRowMouseUp = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onRowMouseUp.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnRowMouseUp(__onRowMouseUp);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onRowMouseUp", this._onRowMouseUp);
        }
      }
                                    
            if (this._rowClasses != null) {
        if (this._rowClasses.isLiteralText()) {
          try {
                       
            java.lang.String __rowClasses = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rowClasses.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRowClasses(__rowClasses);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rowClasses", this._rowClasses);
        }
      }
                           
            if (this._rowKey != null) {
        if (this._rowKey.isLiteralText()) {
          try {
                       
            java.lang.Object __rowKey = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rowKey.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setRowKey(__rowKey);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rowKey", this._rowKey);
        }
      }
                        setRowKeyConverterProperty(comp, this._rowKeyConverter);
                  
            if (this._rowKeyVar != null) {
        if (this._rowKeyVar.isLiteralText()) {
          try {
                       
            java.lang.String __rowKeyVar = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rowKeyVar.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRowKeyVar(__rowKeyVar);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rowKeyVar", this._rowKeyVar);
        }
      }
                         
            if (this._rules != null) {
        if (this._rules.isLiteralText()) {
          try {
                       
            java.lang.String __rules = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rules.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRules(__rules);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rules", this._rules);
        }
      }
                        
            if (this._stateVar != null) {
        if (this._stateVar.isLiteralText()) {
          try {
                       
            java.lang.String __stateVar = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._stateVar.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStateVar(__stateVar);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("stateVar", this._stateVar);
        }
      }
                          
            if (this._summary != null) {
        if (this._summary.isLiteralText()) {
          try {
                       
            java.lang.String __summary = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._summary.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSummary(__summary);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("summary", this._summary);
        }
      }
                         
            if (this._value != null) {
        if (this._value.isLiteralText()) {
          try {
                       
            java.lang.Object __value = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._value.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setValue(__value);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("value", this._value);
        }
      }
                        
                      if (this._var != null) {
          comp.setVar(this._var);
        }
                                
            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.HtmlDataGrid

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.