Package org.richfaces.component.html

Examples of org.richfaces.component.html.HtmlExtendedDataTable


     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlExtendedDataTable comp = (HtmlExtendedDataTable) component;
            
            if (this._activeClass != null) {
        if (this._activeClass.isLiteralText()) {
          try {
                       
            java.lang.String __activeClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._activeClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setActiveClass(__activeClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("activeClass", this._activeClass);
        }
      }
                        
            if (this._activeRowKey != null) {
        if (this._activeRowKey.isLiteralText()) {
          try {
                       
            java.lang.Object __activeRowKey = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._activeRowKey.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setActiveRowKey(__activeRowKey);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("activeRowKey", this._activeRowKey);
        }
      }
                        
            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._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._enableContextMenu != null) {
        if (this._enableContextMenu.isLiteralText()) {
          try {
                       
            java.lang.Boolean __enableContextMenu = (java.lang.Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._enableContextMenu.getExpressionString(),
                      java.lang.Boolean.class);
         
                        comp.setEnableContextMenu(__enableContextMenu);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("enableContextMenu", this._enableContextMenu);
        }
      }
                          
            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._groupingColumn != null) {
        if (this._groupingColumn.isLiteralText()) {
          try {
                       
            java.lang.String __groupingColumn = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._groupingColumn.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setGroupingColumn(__groupingColumn);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("groupingColumn", this._groupingColumn);
        }
      }
                          
            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._height != null) {
        if (this._height.isLiteralText()) {
          try {
                       
            java.lang.String __height = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._height.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setHeight(__height);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("height", this._height);
        }
      }
                          
            if (this._noDataLabel != null) {
        if (this._noDataLabel.isLiteralText()) {
          try {
                       
            java.lang.String __noDataLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._noDataLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setNoDataLabel(__noDataLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("noDataLabel", this._noDataLabel);
        }
      }
                        
            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._onselectionchange != null) {
        if (this._onselectionchange.isLiteralText()) {
          try {
                       
            java.lang.String __onselectionchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onselectionchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnselectionchange(__onselectionchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onselectionchange", this._onselectionchange);
        }
      }
                        
            if (this._reRender != null) {
        if (this._reRender.isLiteralText()) {
          try {
                       
            java.lang.Object __reRender = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._reRender.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setReRender(__reRender);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("reRender", this._reRender);
        }
      }
                          
            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);
        }
      }
                            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._rows != null) {
        if (this._rows.isLiteralText()) {
          try {
                       
            Integer __rows = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rows.getExpressionString(),
                      Integer.class);
         
                        comp.setRows(__rows.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rows", this._rows);
        }
      }
                        
            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._selectedClass != null) {
        if (this._selectedClass.isLiteralText()) {
          try {
                       
            java.lang.String __selectedClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selectedClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSelectedClass(__selectedClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selectedClass", this._selectedClass);
        }
      }
                                 if(null != this._selection && this._selection.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.ExtendedDataTable with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property selection");
        }
      
            if (this._selection != null) {
        if (this._selection.isLiteralText()) {
          try {
                       
            org.richfaces.model.selection.Selection __selection = (org.richfaces.model.selection.Selection) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selection.getExpressionString(),
                      org.richfaces.model.selection.Selection.class);
         
                        comp.setSelection(__selection);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selection", this._selection);
        }
      }
                        
            if (this._selectionMode != null) {
        if (this._selectionMode.isLiteralText()) {
          try {
                       
            java.lang.String __selectionMode = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selectionMode.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSelectionMode(__selectionMode);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selectionMode", this._selectionMode);
        }
      }
                         
            if (this._sortMode != null) {
        if (this._sortMode.isLiteralText()) {
          try {
                       
            java.lang.String __sortMode = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortMode.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortMode(__sortMode);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortMode", this._sortMode);
        }
      }
                        
            if (this._sortPriority != null) {
        if (this._sortPriority.isLiteralText()) {
          try {
                       
            java.util.Collection __sortPriority = (java.util.Collection) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortPriority.getExpressionString(),
                      java.util.Collection.class);
         
                        comp.setSortPriority(__sortPriority);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortPriority", this._sortPriority);
        }
      }
                          
            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(null != this._tableState && this._tableState.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.ExtendedDataTable with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property tableState");
        }
      
            if (this._tableState != null) {
        if (this._tableState.isLiteralText()) {
          try {
                       
            java.lang.String __tableState = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._tableState.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTableState(__tableState);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("tableState", this._tableState);
        }
      }
                         
            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);
    HtmlExtendedDataTable comp = (HtmlExtendedDataTable) component;
            
            if (this._activeClass != null) {
        if (this._activeClass.isLiteralText()) {
          try {
                       
            java.lang.String __activeClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._activeClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setActiveClass(__activeClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("activeClass", this._activeClass);
        }
      }
                        
            if (this._activeRowKey != null) {
        if (this._activeRowKey.isLiteralText()) {
          try {
                       
            java.lang.Object __activeRowKey = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._activeRowKey.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setActiveRowKey(__activeRowKey);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("activeRowKey", this._activeRowKey);
        }
      }
                        
            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._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._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._groupingColumn != null) {
        if (this._groupingColumn.isLiteralText()) {
          try {
                       
            org.richfaces.component.UIColumn __groupingColumn = (org.richfaces.component.UIColumn) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._groupingColumn.getExpressionString(),
                      org.richfaces.component.UIColumn.class);
         
                        comp.setGroupingColumn(__groupingColumn);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("groupingColumn", this._groupingColumn);
        }
      }
                           
            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._height != null) {
        if (this._height.isLiteralText()) {
          try {
                       
            java.lang.String __height = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._height.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setHeight(__height);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("height", this._height);
        }
      }
                          
            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._onselectionchange != null) {
        if (this._onselectionchange.isLiteralText()) {
          try {
                       
            java.lang.String __onselectionchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onselectionchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnselectionchange(__onselectionchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onselectionchange", this._onselectionchange);
        }
      }
                          
            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);
        }
      }
                            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._rows != null) {
        if (this._rows.isLiteralText()) {
          try {
                       
            Integer __rows = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rows.getExpressionString(),
                      Integer.class);
         
                        comp.setRows(__rows.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rows", this._rows);
        }
      }
                        
            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._selectedClass != null) {
        if (this._selectedClass.isLiteralText()) {
          try {
                       
            java.lang.String __selectedClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selectedClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSelectedClass(__selectedClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selectedClass", this._selectedClass);
        }
      }
                                 if(null != this._selection && this._selection.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.ExtendedDataTable with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property selection");
        }
      
            if (this._selection != null) {
        if (this._selection.isLiteralText()) {
          try {
                       
            org.richfaces.model.selection.Selection __selection = (org.richfaces.model.selection.Selection) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selection.getExpressionString(),
                      org.richfaces.model.selection.Selection.class);
         
                        comp.setSelection(__selection);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selection", this._selection);
        }
      }
                        
            if (this._selectionMode != null) {
        if (this._selectionMode.isLiteralText()) {
          try {
                       
            java.lang.String __selectionMode = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selectionMode.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSelectionMode(__selectionMode);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selectionMode", this._selectionMode);
        }
      }
                         
            if (this._sortMode != null) {
        if (this._sortMode.isLiteralText()) {
          try {
                       
            java.lang.String __sortMode = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortMode.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortMode(__sortMode);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortMode", this._sortMode);
        }
      }
                        
            if (this._sortPriority != null) {
        if (this._sortPriority.isLiteralText()) {
          try {
                       
            java.util.Collection __sortPriority = (java.util.Collection) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortPriority.getExpressionString(),
                      java.util.Collection.class);
         
                        comp.setSortPriority(__sortPriority);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortPriority", this._sortPriority);
        }
      }
                          
            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(null != this._tableState && this._tableState.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.ExtendedDataTable with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property tableState");
        }
      
            if (this._tableState != null) {
        if (this._tableState.isLiteralText()) {
          try {
                       
            java.lang.String __tableState = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._tableState.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTableState(__tableState);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("tableState", this._tableState);
        }
      }
                         
            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);
    HtmlExtendedDataTable comp = (HtmlExtendedDataTable) component;
            
            if (this._activeClass != null) {
        if (this._activeClass.isLiteralText()) {
          try {
                       
            java.lang.String __activeClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._activeClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setActiveClass(__activeClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("activeClass", this._activeClass);
        }
      }
                        
            if (this._activeRowKey != null) {
        if (this._activeRowKey.isLiteralText()) {
          try {
                       
            java.lang.Object __activeRowKey = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._activeRowKey.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setActiveRowKey(__activeRowKey);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("activeRowKey", this._activeRowKey);
        }
      }
                        
            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._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._enableContextMenu != null) {
        if (this._enableContextMenu.isLiteralText()) {
          try {
                       
            java.lang.Boolean __enableContextMenu = (java.lang.Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._enableContextMenu.getExpressionString(),
                      java.lang.Boolean.class);
         
                        comp.setEnableContextMenu(__enableContextMenu);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("enableContextMenu", this._enableContextMenu);
        }
      }
                          
            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._groupingColumn != null) {
        if (this._groupingColumn.isLiteralText()) {
          try {
                       
            java.lang.String __groupingColumn = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._groupingColumn.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setGroupingColumn(__groupingColumn);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("groupingColumn", this._groupingColumn);
        }
      }
                          
            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._height != null) {
        if (this._height.isLiteralText()) {
          try {
                       
            java.lang.String __height = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._height.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setHeight(__height);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("height", this._height);
        }
      }
                          
            if (this._noDataLabel != null) {
        if (this._noDataLabel.isLiteralText()) {
          try {
                       
            java.lang.String __noDataLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._noDataLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setNoDataLabel(__noDataLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("noDataLabel", this._noDataLabel);
        }
      }
                        
            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._onselectionchange != null) {
        if (this._onselectionchange.isLiteralText()) {
          try {
                       
            java.lang.String __onselectionchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onselectionchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnselectionchange(__onselectionchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onselectionchange", this._onselectionchange);
        }
      }
                          
            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);
        }
      }
                            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._rows != null) {
        if (this._rows.isLiteralText()) {
          try {
                       
            Integer __rows = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rows.getExpressionString(),
                      Integer.class);
         
                        comp.setRows(__rows.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rows", this._rows);
        }
      }
                        
            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._selectedClass != null) {
        if (this._selectedClass.isLiteralText()) {
          try {
                       
            java.lang.String __selectedClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selectedClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSelectedClass(__selectedClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selectedClass", this._selectedClass);
        }
      }
                                 if(null != this._selection && this._selection.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.ExtendedDataTable with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property selection");
        }
      
            if (this._selection != null) {
        if (this._selection.isLiteralText()) {
          try {
                       
            org.richfaces.model.selection.Selection __selection = (org.richfaces.model.selection.Selection) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selection.getExpressionString(),
                      org.richfaces.model.selection.Selection.class);
         
                        comp.setSelection(__selection);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selection", this._selection);
        }
      }
                        
            if (this._selectionMode != null) {
        if (this._selectionMode.isLiteralText()) {
          try {
                       
            java.lang.String __selectionMode = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selectionMode.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSelectionMode(__selectionMode);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selectionMode", this._selectionMode);
        }
      }
                         
            if (this._sortMode != null) {
        if (this._sortMode.isLiteralText()) {
          try {
                       
            java.lang.String __sortMode = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortMode.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortMode(__sortMode);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortMode", this._sortMode);
        }
      }
                        
            if (this._sortPriority != null) {
        if (this._sortPriority.isLiteralText()) {
          try {
                       
            java.util.Collection __sortPriority = (java.util.Collection) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortPriority.getExpressionString(),
                      java.util.Collection.class);
         
                        comp.setSortPriority(__sortPriority);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortPriority", this._sortPriority);
        }
      }
                          
            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(null != this._tableState && this._tableState.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.ExtendedDataTable with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property tableState");
        }
      
            if (this._tableState != null) {
        if (this._tableState.isLiteralText()) {
          try {
                       
            java.lang.String __tableState = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._tableState.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTableState(__tableState);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("tableState", this._tableState);
        }
      }
                         
            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);
    HtmlExtendedDataTable comp = (HtmlExtendedDataTable) component;
            
            if (this._activeClass != null) {
        if (this._activeClass.isLiteralText()) {
          try {
                       
            java.lang.String __activeClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._activeClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setActiveClass(__activeClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("activeClass", this._activeClass);
        }
      }
                        
            if (this._activeRowKey != null) {
        if (this._activeRowKey.isLiteralText()) {
          try {
                       
            java.lang.Object __activeRowKey = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._activeRowKey.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setActiveRowKey(__activeRowKey);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("activeRowKey", this._activeRowKey);
        }
      }
                        
            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._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._enableContextMenu != null) {
        if (this._enableContextMenu.isLiteralText()) {
          try {
                       
            java.lang.Boolean __enableContextMenu = (java.lang.Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._enableContextMenu.getExpressionString(),
                      java.lang.Boolean.class);
         
                        comp.setEnableContextMenu(__enableContextMenu);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("enableContextMenu", this._enableContextMenu);
        }
      }
                          
            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._groupingColumn != null) {
        if (this._groupingColumn.isLiteralText()) {
          try {
                       
            java.lang.String __groupingColumn = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._groupingColumn.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setGroupingColumn(__groupingColumn);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("groupingColumn", this._groupingColumn);
        }
      }
                          
            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._height != null) {
        if (this._height.isLiteralText()) {
          try {
                       
            java.lang.String __height = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._height.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setHeight(__height);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("height", this._height);
        }
      }
                          
            if (this._noDataLabel != null) {
        if (this._noDataLabel.isLiteralText()) {
          try {
                       
            java.lang.String __noDataLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._noDataLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setNoDataLabel(__noDataLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("noDataLabel", this._noDataLabel);
        }
      }
                        
            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._onselectionchange != null) {
        if (this._onselectionchange.isLiteralText()) {
          try {
                       
            java.lang.String __onselectionchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onselectionchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnselectionchange(__onselectionchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onselectionchange", this._onselectionchange);
        }
      }
                        
            if (this._reRender != null) {
        if (this._reRender.isLiteralText()) {
          try {
                       
            java.lang.Object __reRender = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._reRender.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setReRender(__reRender);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("reRender", this._reRender);
        }
      }
                          
            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);
        }
      }
                            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._rows != null) {
        if (this._rows.isLiteralText()) {
          try {
                       
            Integer __rows = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rows.getExpressionString(),
                      Integer.class);
         
                        comp.setRows(__rows.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rows", this._rows);
        }
      }
                        
            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._selectedClass != null) {
        if (this._selectedClass.isLiteralText()) {
          try {
                       
            java.lang.String __selectedClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selectedClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSelectedClass(__selectedClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selectedClass", this._selectedClass);
        }
      }
                                 if(null != this._selection && this._selection.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.ExtendedDataTable with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property selection");
        }
      
            if (this._selection != null) {
        if (this._selection.isLiteralText()) {
          try {
                       
            org.richfaces.model.selection.Selection __selection = (org.richfaces.model.selection.Selection) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selection.getExpressionString(),
                      org.richfaces.model.selection.Selection.class);
         
                        comp.setSelection(__selection);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selection", this._selection);
        }
      }
                        
            if (this._selectionMode != null) {
        if (this._selectionMode.isLiteralText()) {
          try {
                       
            java.lang.String __selectionMode = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selectionMode.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSelectionMode(__selectionMode);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selectionMode", this._selectionMode);
        }
      }
                         
            if (this._sortMode != null) {
        if (this._sortMode.isLiteralText()) {
          try {
                       
            java.lang.String __sortMode = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortMode.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortMode(__sortMode);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortMode", this._sortMode);
        }
      }
                        
            if (this._sortPriority != null) {
        if (this._sortPriority.isLiteralText()) {
          try {
                       
            java.util.Collection __sortPriority = (java.util.Collection) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortPriority.getExpressionString(),
                      java.util.Collection.class);
         
                        comp.setSortPriority(__sortPriority);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortPriority", this._sortPriority);
        }
      }
                          
            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(null != this._tableState && this._tableState.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.ExtendedDataTable with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property tableState");
        }
      
            if (this._tableState != null) {
        if (this._tableState.isLiteralText()) {
          try {
                       
            java.lang.String __tableState = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._tableState.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTableState(__tableState);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("tableState", this._tableState);
        }
      }
                         
            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);
    HtmlExtendedDataTable comp = (HtmlExtendedDataTable) component;
            
            if (this._activeClass != null) {
        if (this._activeClass.isLiteralText()) {
          try {
                       
            java.lang.String __activeClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._activeClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setActiveClass(__activeClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("activeClass", this._activeClass);
        }
      }
                        
            if (this._activeRowKey != null) {
        if (this._activeRowKey.isLiteralText()) {
          try {
                       
            java.lang.Object __activeRowKey = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._activeRowKey.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setActiveRowKey(__activeRowKey);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("activeRowKey", this._activeRowKey);
        }
      }
                        
            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._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._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._groupingColumn != null) {
        if (this._groupingColumn.isLiteralText()) {
          try {
                       
            java.lang.String __groupingColumn = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._groupingColumn.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setGroupingColumn(__groupingColumn);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("groupingColumn", this._groupingColumn);
        }
      }
                          
            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._height != null) {
        if (this._height.isLiteralText()) {
          try {
                       
            java.lang.String __height = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._height.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setHeight(__height);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("height", this._height);
        }
      }
                          
            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._onselectionchange != null) {
        if (this._onselectionchange.isLiteralText()) {
          try {
                       
            java.lang.String __onselectionchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onselectionchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnselectionchange(__onselectionchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onselectionchange", this._onselectionchange);
        }
      }
                          
            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);
        }
      }
                            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._rows != null) {
        if (this._rows.isLiteralText()) {
          try {
                       
            Integer __rows = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rows.getExpressionString(),
                      Integer.class);
         
                        comp.setRows(__rows.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rows", this._rows);
        }
      }
                        
            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._selectedClass != null) {
        if (this._selectedClass.isLiteralText()) {
          try {
                       
            java.lang.String __selectedClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selectedClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSelectedClass(__selectedClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selectedClass", this._selectedClass);
        }
      }
                                 if(null != this._selection && this._selection.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.ExtendedDataTable with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property selection");
        }
      
            if (this._selection != null) {
        if (this._selection.isLiteralText()) {
          try {
                       
            org.richfaces.model.selection.Selection __selection = (org.richfaces.model.selection.Selection) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selection.getExpressionString(),
                      org.richfaces.model.selection.Selection.class);
         
                        comp.setSelection(__selection);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selection", this._selection);
        }
      }
                        
            if (this._selectionMode != null) {
        if (this._selectionMode.isLiteralText()) {
          try {
                       
            java.lang.String __selectionMode = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selectionMode.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSelectionMode(__selectionMode);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selectionMode", this._selectionMode);
        }
      }
                         
            if (this._sortMode != null) {
        if (this._sortMode.isLiteralText()) {
          try {
                       
            java.lang.String __sortMode = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortMode.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSortMode(__sortMode);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortMode", this._sortMode);
        }
      }
                        
            if (this._sortPriority != null) {
        if (this._sortPriority.isLiteralText()) {
          try {
                       
            java.util.Collection __sortPriority = (java.util.Collection) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._sortPriority.getExpressionString(),
                      java.util.Collection.class);
         
                        comp.setSortPriority(__sortPriority);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("sortPriority", this._sortPriority);
        }
      }
                          
            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(null != this._tableState && this._tableState.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.ExtendedDataTable with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property tableState");
        }
      
            if (this._tableState != null) {
        if (this._tableState.isLiteralText()) {
          try {
                       
            java.lang.String __tableState = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._tableState.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTableState(__tableState);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("tableState", this._tableState);
        }
      }
                         
            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.HtmlExtendedDataTable

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.