Examples of HtmlOrderingList


Examples of org.richfaces.component.html.HtmlOrderingList

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlOrderingList comp = (HtmlOrderingList) component;
            
            if (this._activeItem != null) {
        if (this._activeItem.isLiteralText()) {
          try {
                       
            java.lang.Object __activeItem = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._activeItem.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setActiveItem(__activeItem);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("activeItem", this._activeItem);
        }
      }
                        
            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._bottomControlLabel != null) {
        if (this._bottomControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __bottomControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._bottomControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setBottomControlLabel(__bottomControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("bottomControlLabel", this._bottomControlLabel);
        }
      }
                        
            if (this._bottomTitle != null) {
        if (this._bottomTitle.isLiteralText()) {
          try {
                       
            java.lang.String __bottomTitle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._bottomTitle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setBottomTitle(__bottomTitle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("bottomTitle", this._bottomTitle);
        }
      }
                        
            if (this._captionLabel != null) {
        if (this._captionLabel.isLiteralText()) {
          try {
                       
            java.lang.String __captionLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._captionLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCaptionLabel(__captionLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("captionLabel", this._captionLabel);
        }
      }
                        
            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._controlsHorizontalAlign != null) {
        if (this._controlsHorizontalAlign.isLiteralText()) {
          try {
                       
            java.lang.String __controlsHorizontalAlign = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._controlsHorizontalAlign.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setControlsHorizontalAlign(__controlsHorizontalAlign);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("controlsHorizontalAlign", this._controlsHorizontalAlign);
        }
      }
                        
            if (this._controlsType != null) {
        if (this._controlsType.isLiteralText()) {
          try {
                       
            java.lang.String __controlsType = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._controlsType.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setControlsType(__controlsType);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("controlsType", this._controlsType);
        }
      }
                        
            if (this._controlsVerticalAlign != null) {
        if (this._controlsVerticalAlign.isLiteralText()) {
          try {
                       
            java.lang.String __controlsVerticalAlign = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._controlsVerticalAlign.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setControlsVerticalAlign(__controlsVerticalAlign);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("controlsVerticalAlign", this._controlsVerticalAlign);
        }
      }
                        setConverterProperty(comp, this._converter);
                  
            if (this._converterMessage != null) {
        if (this._converterMessage.isLiteralText()) {
          try {
                       
            java.lang.String __converterMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._converterMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setConverterMessage(__converterMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("converterMessage", this._converterMessage);
        }
      }
                        
            if (this._downControlLabel != null) {
        if (this._downControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __downControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._downControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDownControlLabel(__downControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("downControlLabel", this._downControlLabel);
        }
      }
                        
            if (this._downTitle != null) {
        if (this._downTitle.isLiteralText()) {
          try {
                       
            java.lang.String __downTitle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._downTitle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDownTitle(__downTitle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("downTitle", this._downTitle);
        }
      }
                         
            if (this._fastOrderControlsVisible != null) {
        if (this._fastOrderControlsVisible.isLiteralText()) {
          try {
                       
            Boolean __fastOrderControlsVisible = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fastOrderControlsVisible.getExpressionString(),
                      Boolean.class);
         
                        comp.setFastOrderControlsVisible(__fastOrderControlsVisible.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fastOrderControlsVisible", this._fastOrderControlsVisible);
        }
      }
                            
            if (this._immediate != null) {
        if (this._immediate.isLiteralText()) {
          try {
                       
            Boolean __immediate = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._immediate.getExpressionString(),
                      Boolean.class);
         
                        comp.setImmediate(__immediate.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("immediate", this._immediate);
        }
      }
                         
            if (this._label != null) {
        if (this._label.isLiteralText()) {
          try {
                       
            java.lang.String __label = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._label.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLabel(__label);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("label", this._label);
        }
      }
                        
            if (this._listHeight != null) {
        if (this._listHeight.isLiteralText()) {
          try {
                       
            java.lang.String __listHeight = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._listHeight.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setListHeight(__listHeight);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("listHeight", this._listHeight);
        }
      }
                        
            if (this._listWidth != null) {
        if (this._listWidth.isLiteralText()) {
          try {
                       
            java.lang.String __listWidth = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._listWidth.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setListWidth(__listWidth);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("listWidth", this._listWidth);
        }
      }
                          
            if (this._onbottomclick != null) {
        if (this._onbottomclick.isLiteralText()) {
          try {
                       
            java.lang.String __onbottomclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onbottomclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnbottomclick(__onbottomclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onbottomclick", this._onbottomclick);
        }
      }
                          
            if (this._ondownclick != null) {
        if (this._ondownclick.isLiteralText()) {
          try {
                       
            java.lang.String __ondownclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ondownclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOndownclick(__ondownclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ondownclick", this._ondownclick);
        }
      }
                        
            if (this._onheaderclick != null) {
        if (this._onheaderclick.isLiteralText()) {
          try {
                       
            java.lang.String __onheaderclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onheaderclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnheaderclick(__onheaderclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onheaderclick", this._onheaderclick);
        }
      }
                           
            if (this._onorderchange != null) {
        if (this._onorderchange.isLiteralText()) {
          try {
                       
            java.lang.String __onorderchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onorderchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnorderchange(__onorderchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onorderchange", this._onorderchange);
        }
      }
                        
            if (this._onorderchanged != null) {
        if (this._onorderchanged.isLiteralText()) {
          try {
                       
            java.lang.String __onorderchanged = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onorderchanged.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnorderchanged(__onorderchanged);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onorderchanged", this._onorderchanged);
        }
      }
                        
            if (this._ontopclick != null) {
        if (this._ontopclick.isLiteralText()) {
          try {
                       
            java.lang.String __ontopclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ontopclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOntopclick(__ontopclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ontopclick", this._ontopclick);
        }
      }
                        
            if (this._onupclick != null) {
        if (this._onupclick.isLiteralText()) {
          try {
                       
            java.lang.String __onupclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onupclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnupclick(__onupclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onupclick", this._onupclick);
        }
      }
                        
            if (this._orderControlsVisible != null) {
        if (this._orderControlsVisible.isLiteralText()) {
          try {
                       
            Boolean __orderControlsVisible = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._orderControlsVisible.getExpressionString(),
                      Boolean.class);
         
                        comp.setOrderControlsVisible(__orderControlsVisible.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("orderControlsVisible", this._orderControlsVisible);
        }
      }
                         
            if (this._required != null) {
        if (this._required.isLiteralText()) {
          try {
                       
            Boolean __required = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._required.getExpressionString(),
                      Boolean.class);
         
                        comp.setRequired(__required.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("required", this._required);
        }
      }
                        
            if (this._requiredMessage != null) {
        if (this._requiredMessage.isLiteralText()) {
          try {
                       
            java.lang.String __requiredMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._requiredMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRequiredMessage(__requiredMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("requiredMessage", this._requiredMessage);
        }
      }
                         
            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) {
          comp.setRowKeyVar(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(null != this._selection && this._selection.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.OrderingList with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property selection");
        }
      
            if (this._selection != null) {
        if (this._selection.isLiteralText()) {
          try {
                       
            java.util.Set __selection = (java.util.Set) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selection.getExpressionString(),
                      java.util.Set.class);
         
                        comp.setSelection(__selection);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selection", this._selection);
        }
      }
                        
            if (this._showButtonLabels != null) {
        if (this._showButtonLabels.isLiteralText()) {
          try {
                       
            Boolean __showButtonLabels = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._showButtonLabels.getExpressionString(),
                      Boolean.class);
         
                        comp.setShowButtonLabels(__showButtonLabels.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("showButtonLabels", this._showButtonLabels);
        }
      }
                            
            if (this._topControlLabel != null) {
        if (this._topControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __topControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._topControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTopControlLabel(__topControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("topControlLabel", this._topControlLabel);
        }
      }
                        
            if (this._topTitle != null) {
        if (this._topTitle.isLiteralText()) {
          try {
                       
            java.lang.String __topTitle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._topTitle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTopTitle(__topTitle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("topTitle", this._topTitle);
        }
      }
                        
            if (this._upControlLabel != null) {
        if (this._upControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __upControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._upControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUpControlLabel(__upControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("upControlLabel", this._upControlLabel);
        }
      }
                        
            if (this._upTitle != null) {
        if (this._upTitle.isLiteralText()) {
          try {
                       
            java.lang.String __upTitle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._upTitle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUpTitle(__upTitle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("upTitle", this._upTitle);
        }
      }
                         setValidatorProperty(comp, this._validator);
                  
            if (this._validatorMessage != null) {
        if (this._validatorMessage.isLiteralText()) {
          try {
                       
            java.lang.String __validatorMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._validatorMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setValidatorMessage(__validatorMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("validatorMessage", this._validatorMessage);
        }
      }
                         
            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);
        }
      }
                        setValueChangeListenerProperty(comp, this._valueChangeListener);
                   
                      if (this._var != null) {
          comp.setVar(this._var);
        }
                       }
View Full Code Here

Examples of org.richfaces.component.html.HtmlOrderingList

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlOrderingList comp = (HtmlOrderingList) component;
            
            if (this._activeItem != null) {
        if (this._activeItem.isLiteralText()) {
          try {
                       
            java.lang.Object __activeItem = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._activeItem.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setActiveItem(__activeItem);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("activeItem", this._activeItem);
        }
      }
                        
            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._bottomControlLabel != null) {
        if (this._bottomControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __bottomControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._bottomControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setBottomControlLabel(__bottomControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("bottomControlLabel", this._bottomControlLabel);
        }
      }
                        
            if (this._captionLabel != null) {
        if (this._captionLabel.isLiteralText()) {
          try {
                       
            java.lang.String __captionLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._captionLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCaptionLabel(__captionLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("captionLabel", this._captionLabel);
        }
      }
                        
            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._controlsHorizontalAlign != null) {
        if (this._controlsHorizontalAlign.isLiteralText()) {
          try {
                       
            java.lang.String __controlsHorizontalAlign = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._controlsHorizontalAlign.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setControlsHorizontalAlign(__controlsHorizontalAlign);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("controlsHorizontalAlign", this._controlsHorizontalAlign);
        }
      }
                        
            if (this._controlsType != null) {
        if (this._controlsType.isLiteralText()) {
          try {
                       
            java.lang.String __controlsType = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._controlsType.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setControlsType(__controlsType);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("controlsType", this._controlsType);
        }
      }
                        
            if (this._controlsVerticalAlign != null) {
        if (this._controlsVerticalAlign.isLiteralText()) {
          try {
                       
            java.lang.String __controlsVerticalAlign = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._controlsVerticalAlign.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setControlsVerticalAlign(__controlsVerticalAlign);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("controlsVerticalAlign", this._controlsVerticalAlign);
        }
      }
                        setConverterProperty(comp, this._converter);
                  
            if (this._downControlLabel != null) {
        if (this._downControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __downControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._downControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDownControlLabel(__downControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("downControlLabel", this._downControlLabel);
        }
      }
                         
            if (this._fastOrderControlsVisible != null) {
        if (this._fastOrderControlsVisible.isLiteralText()) {
          try {
                       
            Boolean __fastOrderControlsVisible = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fastOrderControlsVisible.getExpressionString(),
                      Boolean.class);
         
                        comp.setFastOrderControlsVisible(__fastOrderControlsVisible.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fastOrderControlsVisible", this._fastOrderControlsVisible);
        }
      }
                            
            if (this._immediate != null) {
        if (this._immediate.isLiteralText()) {
          try {
                       
            Boolean __immediate = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._immediate.getExpressionString(),
                      Boolean.class);
         
                        comp.setImmediate(__immediate.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("immediate", this._immediate);
        }
      }
                         
            if (this._listHeight != null) {
        if (this._listHeight.isLiteralText()) {
          try {
                       
            java.lang.String __listHeight = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._listHeight.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setListHeight(__listHeight);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("listHeight", this._listHeight);
        }
      }
                        
            if (this._listWidth != null) {
        if (this._listWidth.isLiteralText()) {
          try {
                       
            java.lang.String __listWidth = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._listWidth.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setListWidth(__listWidth);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("listWidth", this._listWidth);
        }
      }
                          
            if (this._onbottomclick != null) {
        if (this._onbottomclick.isLiteralText()) {
          try {
                       
            java.lang.String __onbottomclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onbottomclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnbottomclick(__onbottomclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onbottomclick", this._onbottomclick);
        }
      }
                          
            if (this._ondownclick != null) {
        if (this._ondownclick.isLiteralText()) {
          try {
                       
            java.lang.String __ondownclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ondownclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOndownclick(__ondownclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ondownclick", this._ondownclick);
        }
      }
                        
            if (this._onheaderclick != null) {
        if (this._onheaderclick.isLiteralText()) {
          try {
                       
            java.lang.String __onheaderclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onheaderclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnheaderclick(__onheaderclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onheaderclick", this._onheaderclick);
        }
      }
                           
            if (this._onorderchanged != null) {
        if (this._onorderchanged.isLiteralText()) {
          try {
                       
            java.lang.String __onorderchanged = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onorderchanged.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnorderchanged(__onorderchanged);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onorderchanged", this._onorderchanged);
        }
      }
                        
            if (this._ontopclick != null) {
        if (this._ontopclick.isLiteralText()) {
          try {
                       
            java.lang.String __ontopclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ontopclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOntopclick(__ontopclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ontopclick", this._ontopclick);
        }
      }
                        
            if (this._onupclick != null) {
        if (this._onupclick.isLiteralText()) {
          try {
                       
            java.lang.String __onupclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onupclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnupclick(__onupclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onupclick", this._onupclick);
        }
      }
                        
            if (this._orderControlsVisible != null) {
        if (this._orderControlsVisible.isLiteralText()) {
          try {
                       
            Boolean __orderControlsVisible = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._orderControlsVisible.getExpressionString(),
                      Boolean.class);
         
                        comp.setOrderControlsVisible(__orderControlsVisible.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("orderControlsVisible", this._orderControlsVisible);
        }
      }
                         
            if (this._required != null) {
        if (this._required.isLiteralText()) {
          try {
                       
            Boolean __required = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._required.getExpressionString(),
                      Boolean.class);
         
                        comp.setRequired(__required.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("required", this._required);
        }
      }
                         
            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) {
          comp.setRowKeyVar(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(null != this._selection && this._selection.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.OrderingList with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property selection");
        }
      
            if (this._selection != null) {
        if (this._selection.isLiteralText()) {
          try {
                       
            java.util.Set __selection = (java.util.Set) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selection.getExpressionString(),
                      java.util.Set.class);
         
                        comp.setSelection(__selection);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selection", this._selection);
        }
      }
                        
            if (this._showButtonLabels != null) {
        if (this._showButtonLabels.isLiteralText()) {
          try {
                       
            Boolean __showButtonLabels = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._showButtonLabels.getExpressionString(),
                      Boolean.class);
         
                        comp.setShowButtonLabels(__showButtonLabels.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("showButtonLabels", this._showButtonLabels);
        }
      }
                            
            if (this._topControlLabel != null) {
        if (this._topControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __topControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._topControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTopControlLabel(__topControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("topControlLabel", this._topControlLabel);
        }
      }
                        
            if (this._upControlLabel != null) {
        if (this._upControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __upControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._upControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUpControlLabel(__upControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("upControlLabel", this._upControlLabel);
        }
      }
                         setValidatorProperty(comp, this._validator);
                   
            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);
        }
      }
                        setValueChangeListenerProperty(comp, this._valueChangeListener);
                   
                      if (this._var != null) {
          comp.setVar(this._var);
        }
                       }
View Full Code Here

Examples of org.richfaces.component.html.HtmlOrderingList

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlOrderingList comp = (HtmlOrderingList) component;
            
            if (this._activeItem != null) {
        if (this._activeItem.isLiteralText()) {
          try {
                       
            java.lang.Object __activeItem = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._activeItem.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setActiveItem(__activeItem);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("activeItem", this._activeItem);
        }
      }
                        
            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._bottomControlLabel != null) {
        if (this._bottomControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __bottomControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._bottomControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setBottomControlLabel(__bottomControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("bottomControlLabel", this._bottomControlLabel);
        }
      }
                        
            if (this._bottomTitle != null) {
        if (this._bottomTitle.isLiteralText()) {
          try {
                       
            java.lang.String __bottomTitle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._bottomTitle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setBottomTitle(__bottomTitle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("bottomTitle", this._bottomTitle);
        }
      }
                        
            if (this._captionLabel != null) {
        if (this._captionLabel.isLiteralText()) {
          try {
                       
            java.lang.String __captionLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._captionLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCaptionLabel(__captionLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("captionLabel", this._captionLabel);
        }
      }
                        
            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._controlsHorizontalAlign != null) {
        if (this._controlsHorizontalAlign.isLiteralText()) {
          try {
                       
            java.lang.String __controlsHorizontalAlign = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._controlsHorizontalAlign.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setControlsHorizontalAlign(__controlsHorizontalAlign);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("controlsHorizontalAlign", this._controlsHorizontalAlign);
        }
      }
                        
            if (this._controlsType != null) {
        if (this._controlsType.isLiteralText()) {
          try {
                       
            java.lang.String __controlsType = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._controlsType.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setControlsType(__controlsType);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("controlsType", this._controlsType);
        }
      }
                        
            if (this._controlsVerticalAlign != null) {
        if (this._controlsVerticalAlign.isLiteralText()) {
          try {
                       
            java.lang.String __controlsVerticalAlign = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._controlsVerticalAlign.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setControlsVerticalAlign(__controlsVerticalAlign);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("controlsVerticalAlign", this._controlsVerticalAlign);
        }
      }
                        setConverterProperty(comp, this._converter);
                  
            if (this._converterMessage != null) {
        if (this._converterMessage.isLiteralText()) {
          try {
                       
            java.lang.String __converterMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._converterMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setConverterMessage(__converterMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("converterMessage", this._converterMessage);
        }
      }
                        
            if (this._downControlLabel != null) {
        if (this._downControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __downControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._downControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDownControlLabel(__downControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("downControlLabel", this._downControlLabel);
        }
      }
                        
            if (this._downTitle != null) {
        if (this._downTitle.isLiteralText()) {
          try {
                       
            java.lang.String __downTitle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._downTitle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDownTitle(__downTitle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("downTitle", this._downTitle);
        }
      }
                         
            if (this._fastOrderControlsVisible != null) {
        if (this._fastOrderControlsVisible.isLiteralText()) {
          try {
                       
            Boolean __fastOrderControlsVisible = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fastOrderControlsVisible.getExpressionString(),
                      Boolean.class);
         
                        comp.setFastOrderControlsVisible(__fastOrderControlsVisible.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fastOrderControlsVisible", this._fastOrderControlsVisible);
        }
      }
                            
            if (this._immediate != null) {
        if (this._immediate.isLiteralText()) {
          try {
                       
            Boolean __immediate = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._immediate.getExpressionString(),
                      Boolean.class);
         
                        comp.setImmediate(__immediate.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("immediate", this._immediate);
        }
      }
                         
            if (this._label != null) {
        if (this._label.isLiteralText()) {
          try {
                       
            java.lang.String __label = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._label.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLabel(__label);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("label", this._label);
        }
      }
                        
            if (this._listHeight != null) {
        if (this._listHeight.isLiteralText()) {
          try {
                       
            java.lang.String __listHeight = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._listHeight.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setListHeight(__listHeight);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("listHeight", this._listHeight);
        }
      }
                        
            if (this._listWidth != null) {
        if (this._listWidth.isLiteralText()) {
          try {
                       
            java.lang.String __listWidth = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._listWidth.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setListWidth(__listWidth);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("listWidth", this._listWidth);
        }
      }
                          
            if (this._onbottomclick != null) {
        if (this._onbottomclick.isLiteralText()) {
          try {
                       
            java.lang.String __onbottomclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onbottomclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnbottomclick(__onbottomclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onbottomclick", this._onbottomclick);
        }
      }
                          
            if (this._ondownclick != null) {
        if (this._ondownclick.isLiteralText()) {
          try {
                       
            java.lang.String __ondownclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ondownclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOndownclick(__ondownclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ondownclick", this._ondownclick);
        }
      }
                        
            if (this._onheaderclick != null) {
        if (this._onheaderclick.isLiteralText()) {
          try {
                       
            java.lang.String __onheaderclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onheaderclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnheaderclick(__onheaderclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onheaderclick", this._onheaderclick);
        }
      }
                           
            if (this._onorderchange != null) {
        if (this._onorderchange.isLiteralText()) {
          try {
                       
            java.lang.String __onorderchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onorderchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnorderchange(__onorderchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onorderchange", this._onorderchange);
        }
      }
                        
            if (this._onorderchanged != null) {
        if (this._onorderchanged.isLiteralText()) {
          try {
                       
            java.lang.String __onorderchanged = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onorderchanged.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnorderchanged(__onorderchanged);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onorderchanged", this._onorderchanged);
        }
      }
                        
            if (this._ontopclick != null) {
        if (this._ontopclick.isLiteralText()) {
          try {
                       
            java.lang.String __ontopclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ontopclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOntopclick(__ontopclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ontopclick", this._ontopclick);
        }
      }
                        
            if (this._onupclick != null) {
        if (this._onupclick.isLiteralText()) {
          try {
                       
            java.lang.String __onupclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onupclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnupclick(__onupclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onupclick", this._onupclick);
        }
      }
                        
            if (this._orderControlsVisible != null) {
        if (this._orderControlsVisible.isLiteralText()) {
          try {
                       
            Boolean __orderControlsVisible = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._orderControlsVisible.getExpressionString(),
                      Boolean.class);
         
                        comp.setOrderControlsVisible(__orderControlsVisible.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("orderControlsVisible", this._orderControlsVisible);
        }
      }
                         
            if (this._required != null) {
        if (this._required.isLiteralText()) {
          try {
                       
            Boolean __required = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._required.getExpressionString(),
                      Boolean.class);
         
                        comp.setRequired(__required.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("required", this._required);
        }
      }
                        
            if (this._requiredMessage != null) {
        if (this._requiredMessage.isLiteralText()) {
          try {
                       
            java.lang.String __requiredMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._requiredMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRequiredMessage(__requiredMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("requiredMessage", this._requiredMessage);
        }
      }
                         
            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) {
          comp.setRowKeyVar(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(null != this._selection && this._selection.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.OrderingList with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property selection");
        }
      
            if (this._selection != null) {
        if (this._selection.isLiteralText()) {
          try {
                       
            java.util.Set __selection = (java.util.Set) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selection.getExpressionString(),
                      java.util.Set.class);
         
                        comp.setSelection(__selection);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selection", this._selection);
        }
      }
                        
            if (this._showButtonLabels != null) {
        if (this._showButtonLabels.isLiteralText()) {
          try {
                       
            Boolean __showButtonLabels = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._showButtonLabels.getExpressionString(),
                      Boolean.class);
         
                        comp.setShowButtonLabels(__showButtonLabels.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("showButtonLabels", this._showButtonLabels);
        }
      }
                            
            if (this._topControlLabel != null) {
        if (this._topControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __topControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._topControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTopControlLabel(__topControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("topControlLabel", this._topControlLabel);
        }
      }
                        
            if (this._topTitle != null) {
        if (this._topTitle.isLiteralText()) {
          try {
                       
            java.lang.String __topTitle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._topTitle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTopTitle(__topTitle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("topTitle", this._topTitle);
        }
      }
                        
            if (this._upControlLabel != null) {
        if (this._upControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __upControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._upControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUpControlLabel(__upControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("upControlLabel", this._upControlLabel);
        }
      }
                        
            if (this._upTitle != null) {
        if (this._upTitle.isLiteralText()) {
          try {
                       
            java.lang.String __upTitle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._upTitle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUpTitle(__upTitle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("upTitle", this._upTitle);
        }
      }
                         setValidatorProperty(comp, this._validator);
                  
            if (this._validatorMessage != null) {
        if (this._validatorMessage.isLiteralText()) {
          try {
                       
            java.lang.String __validatorMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._validatorMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setValidatorMessage(__validatorMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("validatorMessage", this._validatorMessage);
        }
      }
                         
            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);
        }
      }
                        setValueChangeListenerProperty(comp, this._valueChangeListener);
                   
                      if (this._var != null) {
          comp.setVar(this._var);
        }
                       }
View Full Code Here

Examples of org.richfaces.component.html.HtmlOrderingList

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlOrderingList comp = (HtmlOrderingList) component;
            
            if (this._activeItem != null) {
        if (this._activeItem.isLiteralText()) {
          try {
                       
            java.lang.Object __activeItem = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._activeItem.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setActiveItem(__activeItem);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("activeItem", this._activeItem);
        }
      }
                        
            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._bottomControlLabel != null) {
        if (this._bottomControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __bottomControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._bottomControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setBottomControlLabel(__bottomControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("bottomControlLabel", this._bottomControlLabel);
        }
      }
                        
            if (this._bottomTitle != null) {
        if (this._bottomTitle.isLiteralText()) {
          try {
                       
            java.lang.String __bottomTitle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._bottomTitle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setBottomTitle(__bottomTitle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("bottomTitle", this._bottomTitle);
        }
      }
                        
            if (this._captionLabel != null) {
        if (this._captionLabel.isLiteralText()) {
          try {
                       
            java.lang.String __captionLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._captionLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCaptionLabel(__captionLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("captionLabel", this._captionLabel);
        }
      }
                        
            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._controlsHorizontalAlign != null) {
        if (this._controlsHorizontalAlign.isLiteralText()) {
          try {
                       
            java.lang.String __controlsHorizontalAlign = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._controlsHorizontalAlign.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setControlsHorizontalAlign(__controlsHorizontalAlign);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("controlsHorizontalAlign", this._controlsHorizontalAlign);
        }
      }
                        
            if (this._controlsType != null) {
        if (this._controlsType.isLiteralText()) {
          try {
                       
            java.lang.String __controlsType = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._controlsType.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setControlsType(__controlsType);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("controlsType", this._controlsType);
        }
      }
                        
            if (this._controlsVerticalAlign != null) {
        if (this._controlsVerticalAlign.isLiteralText()) {
          try {
                       
            java.lang.String __controlsVerticalAlign = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._controlsVerticalAlign.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setControlsVerticalAlign(__controlsVerticalAlign);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("controlsVerticalAlign", this._controlsVerticalAlign);
        }
      }
                        setConverterProperty(comp, this._converter);
                  
            if (this._converterMessage != null) {
        if (this._converterMessage.isLiteralText()) {
          try {
                       
            java.lang.String __converterMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._converterMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setConverterMessage(__converterMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("converterMessage", this._converterMessage);
        }
      }
                        
            if (this._downControlLabel != null) {
        if (this._downControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __downControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._downControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDownControlLabel(__downControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("downControlLabel", this._downControlLabel);
        }
      }
                        
            if (this._downTitle != null) {
        if (this._downTitle.isLiteralText()) {
          try {
                       
            java.lang.String __downTitle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._downTitle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDownTitle(__downTitle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("downTitle", this._downTitle);
        }
      }
                         
            if (this._fastOrderControlsVisible != null) {
        if (this._fastOrderControlsVisible.isLiteralText()) {
          try {
                       
            Boolean __fastOrderControlsVisible = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fastOrderControlsVisible.getExpressionString(),
                      Boolean.class);
         
                        comp.setFastOrderControlsVisible(__fastOrderControlsVisible.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fastOrderControlsVisible", this._fastOrderControlsVisible);
        }
      }
                            
            if (this._immediate != null) {
        if (this._immediate.isLiteralText()) {
          try {
                       
            Boolean __immediate = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._immediate.getExpressionString(),
                      Boolean.class);
         
                        comp.setImmediate(__immediate.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("immediate", this._immediate);
        }
      }
                         
            if (this._label != null) {
        if (this._label.isLiteralText()) {
          try {
                       
            java.lang.String __label = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._label.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLabel(__label);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("label", this._label);
        }
      }
                        
            if (this._listHeight != null) {
        if (this._listHeight.isLiteralText()) {
          try {
                       
            java.lang.String __listHeight = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._listHeight.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setListHeight(__listHeight);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("listHeight", this._listHeight);
        }
      }
                        
            if (this._listWidth != null) {
        if (this._listWidth.isLiteralText()) {
          try {
                       
            java.lang.String __listWidth = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._listWidth.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setListWidth(__listWidth);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("listWidth", this._listWidth);
        }
      }
                          
            if (this._onbottomclick != null) {
        if (this._onbottomclick.isLiteralText()) {
          try {
                       
            java.lang.String __onbottomclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onbottomclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnbottomclick(__onbottomclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onbottomclick", this._onbottomclick);
        }
      }
                          
            if (this._ondownclick != null) {
        if (this._ondownclick.isLiteralText()) {
          try {
                       
            java.lang.String __ondownclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ondownclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOndownclick(__ondownclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ondownclick", this._ondownclick);
        }
      }
                        
            if (this._onheaderclick != null) {
        if (this._onheaderclick.isLiteralText()) {
          try {
                       
            java.lang.String __onheaderclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onheaderclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnheaderclick(__onheaderclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onheaderclick", this._onheaderclick);
        }
      }
                           
            if (this._onorderchange != null) {
        if (this._onorderchange.isLiteralText()) {
          try {
                       
            java.lang.String __onorderchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onorderchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnorderchange(__onorderchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onorderchange", this._onorderchange);
        }
      }
                        
            if (this._onorderchanged != null) {
        if (this._onorderchanged.isLiteralText()) {
          try {
                       
            java.lang.String __onorderchanged = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onorderchanged.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnorderchanged(__onorderchanged);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onorderchanged", this._onorderchanged);
        }
      }
                        
            if (this._ontopclick != null) {
        if (this._ontopclick.isLiteralText()) {
          try {
                       
            java.lang.String __ontopclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ontopclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOntopclick(__ontopclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ontopclick", this._ontopclick);
        }
      }
                        
            if (this._onupclick != null) {
        if (this._onupclick.isLiteralText()) {
          try {
                       
            java.lang.String __onupclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onupclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnupclick(__onupclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onupclick", this._onupclick);
        }
      }
                        
            if (this._orderControlsVisible != null) {
        if (this._orderControlsVisible.isLiteralText()) {
          try {
                       
            Boolean __orderControlsVisible = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._orderControlsVisible.getExpressionString(),
                      Boolean.class);
         
                        comp.setOrderControlsVisible(__orderControlsVisible.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("orderControlsVisible", this._orderControlsVisible);
        }
      }
                         
            if (this._required != null) {
        if (this._required.isLiteralText()) {
          try {
                       
            Boolean __required = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._required.getExpressionString(),
                      Boolean.class);
         
                        comp.setRequired(__required.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("required", this._required);
        }
      }
                        
            if (this._requiredMessage != null) {
        if (this._requiredMessage.isLiteralText()) {
          try {
                       
            java.lang.String __requiredMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._requiredMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRequiredMessage(__requiredMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("requiredMessage", this._requiredMessage);
        }
      }
                         
            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) {
          comp.setRowKeyVar(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(null != this._selection && this._selection.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.OrderingList with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property selection");
        }
      
            if (this._selection != null) {
        if (this._selection.isLiteralText()) {
          try {
                       
            java.util.Set __selection = (java.util.Set) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selection.getExpressionString(),
                      java.util.Set.class);
         
                        comp.setSelection(__selection);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selection", this._selection);
        }
      }
                        
            if (this._showButtonLabels != null) {
        if (this._showButtonLabels.isLiteralText()) {
          try {
                       
            Boolean __showButtonLabels = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._showButtonLabels.getExpressionString(),
                      Boolean.class);
         
                        comp.setShowButtonLabels(__showButtonLabels.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("showButtonLabels", this._showButtonLabels);
        }
      }
                            
            if (this._topControlLabel != null) {
        if (this._topControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __topControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._topControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTopControlLabel(__topControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("topControlLabel", this._topControlLabel);
        }
      }
                        
            if (this._topTitle != null) {
        if (this._topTitle.isLiteralText()) {
          try {
                       
            java.lang.String __topTitle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._topTitle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTopTitle(__topTitle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("topTitle", this._topTitle);
        }
      }
                        
            if (this._upControlLabel != null) {
        if (this._upControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __upControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._upControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUpControlLabel(__upControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("upControlLabel", this._upControlLabel);
        }
      }
                        
            if (this._upTitle != null) {
        if (this._upTitle.isLiteralText()) {
          try {
                       
            java.lang.String __upTitle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._upTitle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUpTitle(__upTitle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("upTitle", this._upTitle);
        }
      }
                         setValidatorProperty(comp, this._validator);
                  
            if (this._validatorMessage != null) {
        if (this._validatorMessage.isLiteralText()) {
          try {
                       
            java.lang.String __validatorMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._validatorMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setValidatorMessage(__validatorMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("validatorMessage", this._validatorMessage);
        }
      }
                         
            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);
        }
      }
                        setValueChangeListenerProperty(comp, this._valueChangeListener);
                   
                      if (this._var != null) {
          comp.setVar(this._var);
        }
                       }
View Full Code Here

Examples of org.richfaces.component.html.HtmlOrderingList

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlOrderingList comp = (HtmlOrderingList) component;
            
            if (this._activeItem != null) {
        if (this._activeItem.isLiteralText()) {
          try {
                       
            java.lang.Object __activeItem = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._activeItem.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setActiveItem(__activeItem);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("activeItem", this._activeItem);
        }
      }
                        
            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._bottomControlLabel != null) {
        if (this._bottomControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __bottomControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._bottomControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setBottomControlLabel(__bottomControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("bottomControlLabel", this._bottomControlLabel);
        }
      }
                        
            if (this._captionLabel != null) {
        if (this._captionLabel.isLiteralText()) {
          try {
                       
            java.lang.String __captionLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._captionLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCaptionLabel(__captionLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("captionLabel", this._captionLabel);
        }
      }
                        
            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._controlsHorizontalAlign != null) {
        if (this._controlsHorizontalAlign.isLiteralText()) {
          try {
                       
            java.lang.String __controlsHorizontalAlign = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._controlsHorizontalAlign.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setControlsHorizontalAlign(__controlsHorizontalAlign);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("controlsHorizontalAlign", this._controlsHorizontalAlign);
        }
      }
                        
            if (this._controlsType != null) {
        if (this._controlsType.isLiteralText()) {
          try {
                       
            java.lang.String __controlsType = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._controlsType.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setControlsType(__controlsType);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("controlsType", this._controlsType);
        }
      }
                        
            if (this._controlsVerticalAlign != null) {
        if (this._controlsVerticalAlign.isLiteralText()) {
          try {
                       
            java.lang.String __controlsVerticalAlign = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._controlsVerticalAlign.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setControlsVerticalAlign(__controlsVerticalAlign);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("controlsVerticalAlign", this._controlsVerticalAlign);
        }
      }
                        setConverterProperty(comp, this._converter);
                  
            if (this._downControlLabel != null) {
        if (this._downControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __downControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._downControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDownControlLabel(__downControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("downControlLabel", this._downControlLabel);
        }
      }
                         
            if (this._fastOrderControlsVisible != null) {
        if (this._fastOrderControlsVisible.isLiteralText()) {
          try {
                       
            Boolean __fastOrderControlsVisible = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._fastOrderControlsVisible.getExpressionString(),
                      Boolean.class);
         
                        comp.setFastOrderControlsVisible(__fastOrderControlsVisible.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("fastOrderControlsVisible", this._fastOrderControlsVisible);
        }
      }
                            
            if (this._immediate != null) {
        if (this._immediate.isLiteralText()) {
          try {
                       
            Boolean __immediate = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._immediate.getExpressionString(),
                      Boolean.class);
         
                        comp.setImmediate(__immediate.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("immediate", this._immediate);
        }
      }
                         
            if (this._label != null) {
        if (this._label.isLiteralText()) {
          try {
                       
            java.lang.String __label = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._label.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLabel(__label);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("label", this._label);
        }
      }
                        
            if (this._listHeight != null) {
        if (this._listHeight.isLiteralText()) {
          try {
                       
            java.lang.String __listHeight = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._listHeight.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setListHeight(__listHeight);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("listHeight", this._listHeight);
        }
      }
                        
            if (this._listWidth != null) {
        if (this._listWidth.isLiteralText()) {
          try {
                       
            java.lang.String __listWidth = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._listWidth.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setListWidth(__listWidth);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("listWidth", this._listWidth);
        }
      }
                          
            if (this._onbottomclick != null) {
        if (this._onbottomclick.isLiteralText()) {
          try {
                       
            java.lang.String __onbottomclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onbottomclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnbottomclick(__onbottomclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onbottomclick", this._onbottomclick);
        }
      }
                          
            if (this._ondownclick != null) {
        if (this._ondownclick.isLiteralText()) {
          try {
                       
            java.lang.String __ondownclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ondownclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOndownclick(__ondownclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ondownclick", this._ondownclick);
        }
      }
                        
            if (this._onheaderclick != null) {
        if (this._onheaderclick.isLiteralText()) {
          try {
                       
            java.lang.String __onheaderclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onheaderclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnheaderclick(__onheaderclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onheaderclick", this._onheaderclick);
        }
      }
                           
            if (this._onorderchange != null) {
        if (this._onorderchange.isLiteralText()) {
          try {
                       
            java.lang.String __onorderchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onorderchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnorderchange(__onorderchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onorderchange", this._onorderchange);
        }
      }
                        
            if (this._onorderchanged != null) {
        if (this._onorderchanged.isLiteralText()) {
          try {
                       
            java.lang.String __onorderchanged = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onorderchanged.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnorderchanged(__onorderchanged);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onorderchanged", this._onorderchanged);
        }
      }
                        
            if (this._ontopclick != null) {
        if (this._ontopclick.isLiteralText()) {
          try {
                       
            java.lang.String __ontopclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ontopclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOntopclick(__ontopclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ontopclick", this._ontopclick);
        }
      }
                        
            if (this._onupclick != null) {
        if (this._onupclick.isLiteralText()) {
          try {
                       
            java.lang.String __onupclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onupclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnupclick(__onupclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onupclick", this._onupclick);
        }
      }
                        
            if (this._orderControlsVisible != null) {
        if (this._orderControlsVisible.isLiteralText()) {
          try {
                       
            Boolean __orderControlsVisible = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._orderControlsVisible.getExpressionString(),
                      Boolean.class);
         
                        comp.setOrderControlsVisible(__orderControlsVisible.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("orderControlsVisible", this._orderControlsVisible);
        }
      }
                         
            if (this._required != null) {
        if (this._required.isLiteralText()) {
          try {
                       
            Boolean __required = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._required.getExpressionString(),
                      Boolean.class);
         
                        comp.setRequired(__required.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("required", this._required);
        }
      }
                         
            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) {
          comp.setRowKeyVar(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(null != this._selection && this._selection.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.OrderingList with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property selection");
        }
      
            if (this._selection != null) {
        if (this._selection.isLiteralText()) {
          try {
                       
            java.util.Set __selection = (java.util.Set) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selection.getExpressionString(),
                      java.util.Set.class);
         
                        comp.setSelection(__selection);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selection", this._selection);
        }
      }
                        
            if (this._showButtonLabels != null) {
        if (this._showButtonLabels.isLiteralText()) {
          try {
                       
            Boolean __showButtonLabels = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._showButtonLabels.getExpressionString(),
                      Boolean.class);
         
                        comp.setShowButtonLabels(__showButtonLabels.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("showButtonLabels", this._showButtonLabels);
        }
      }
                            
            if (this._topControlLabel != null) {
        if (this._topControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __topControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._topControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTopControlLabel(__topControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("topControlLabel", this._topControlLabel);
        }
      }
                        
            if (this._upControlLabel != null) {
        if (this._upControlLabel.isLiteralText()) {
          try {
                       
            java.lang.String __upControlLabel = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._upControlLabel.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setUpControlLabel(__upControlLabel);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("upControlLabel", this._upControlLabel);
        }
      }
                         setValidatorProperty(comp, this._validator);
                   
            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);
        }
      }
                        setValueChangeListenerProperty(comp, this._valueChangeListener);
                   
                      if (this._var != null) {
          comp.setVar(this._var);
        }
                       }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.