Examples of HTMLEditor


Examples of org.eclipse.jst.pagedesigner.editors.HTMLEditor

    _quickEditTabSections = null;
    _groupsManager = null;
  }
 
  private Entity getTagEntity(IWorkbenchPart part, ISelection selection, Element node){
    HTMLEditor ed = null;
    if (part instanceof HTMLEditor)
      ed = (HTMLEditor)part;
    if (ed == null)
      return null;
   
    if (ed.getEditorInput() instanceof FileEditorInput) {
      FileEditorInput input = (FileEditorInput)ed.getEditorInput();
      IStructuredDocumentContext context = IStructuredDocumentContextFactory.INSTANCE.getContext(ed.getDocument(), node);
      if (context != null){
        ITaglibContextResolver resolver = IStructuredDocumentContextResolverFactory.INSTANCE.getTaglibContextResolver(context);
        if (resolver != null){
          ITaglibDomainMetaDataModelContext mdContext = TaglibDomainMetaDataQueryHelper.createMetaDataModelContext(input.getFile().getProject(),resolver.getTagURIForNodeName(node));
          return TaglibDomainMetaDataQueryHelper.getEntity(mdContext, node.getLocalName());
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.editors.HTMLEditor

  protected boolean htmlEditorIsInSourceOnlyMode() {
    boolean ret = false;
    if (_viewer instanceof HTMLGraphicalViewer) {
      IEditorPart parent = ((HTMLGraphicalViewer)_viewer).getParent();
      if (parent instanceof SimpleGraphicalEditor) {
        HTMLEditor htmlEditor = ((SimpleGraphicalEditor)parent).getHTMLEditor();
        if (htmlEditor != null) {
          ret = (htmlEditor.getDesignerMode() == HTMLEditor.MODE_SOURCE);
        }
      }
    }
    return ret;
  }
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.editors.HTMLEditor

    _quickEditTabSections = null;
    _groupsManager = null;
  }
 
  private String getTagURIForNodeName(IWorkbenchPart part, ISelection selection, Element node) {
    HTMLEditor ed = null;
    if (part instanceof HTMLEditor)
      ed = (HTMLEditor)part;
    if (ed == null)
      return null;
   
    if (ed.getEditorInput() instanceof FileEditorInput) {
      IStructuredDocumentContext context = IStructuredDocumentContextFactory.INSTANCE.getContext(ed.getDocument(), node);
      if (context != null){
        ITaglibContextResolver resolver = IStructuredDocumentContextResolverFactory.INSTANCE.getTaglibContextResolver(context);
        if (resolver != null){
          return resolver.getTagURIForNodeName(node);
        }
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.editors.HTMLEditor

    }
    return null;
  }
 
  private ITaglibDomainMetaDataQuery getQuery(IWorkbenchPart part, Element node) {
    HTMLEditor ed = null;
    if (part instanceof HTMLEditor)
      ed = (HTMLEditor)part;
    if (ed == null)
      return null;
   
   
    if (ed.getEditorInput() instanceof FileEditorInput) {
      final FileEditorInput input = (FileEditorInput)ed.getEditorInput();
      final IMetaDataDomainContext mdContext = MetaDataQueryContextFactory.getInstance().createTaglibDomainModelContext(input.getFile());
      return MetaDataQueryFactory.getInstance().createQuery(mdContext);
    }
    return null;
  }
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.editors.HTMLEditor

  /**
   * @param enabled
   */
  public void setViewerSpecificContributionsEnabled(boolean enabled) {
    HTMLEditor htmlEditor = null;
    if (_editorPart instanceof HTMLEditor) {
      htmlEditor = (HTMLEditor) _editorPart;
    } else if (_editorPart instanceof SimpleGraphicalEditor) {
      htmlEditor = ((SimpleGraphicalEditor) _editorPart).getHTMLEditor();
    }

    if (htmlEditor == null)
      return;

    SimpleGraphicalEditor graphicalEditor = (SimpleGraphicalEditor) htmlEditor
        .getDesignViewer();
    IWorkbenchPartSite site = htmlEditor.getSite();
    if (site instanceof IEditorSite) {
      IActionBars actionBars = ((IEditorSite) site).getActionBars();

      if (enabled) {
        // // we always let the text editor to handle UNDO and REDO
View Full Code Here

Examples of org.richfaces.component.html.HtmlEditor

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlEditor comp = (HtmlEditor) component;
            
            if (this._autoResize != null) {
        if (this._autoResize.isLiteralText()) {
          try {
                       
            Boolean __autoResize = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._autoResize.getExpressionString(),
                      Boolean.class);
         
                        comp.setAutoResize(__autoResize.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("autoResize", this._autoResize);
        }
      }
                         
            if (this._configuration != null) {
        if (this._configuration.isLiteralText()) {
          try {
                       
            java.lang.String __configuration = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._configuration.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setConfiguration(__configuration);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("configuration", this._configuration);
        }
      }
                        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._customPlugins != null) {
        if (this._customPlugins.isLiteralText()) {
          try {
                       
            java.lang.String __customPlugins = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._customPlugins.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCustomPlugins(__customPlugins);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("customPlugins", this._customPlugins);
        }
      }
                        
            if (this._dialogType != null) {
        if (this._dialogType.isLiteralText()) {
          try {
                       
            java.lang.String __dialogType = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._dialogType.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDialogType(__dialogType);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("dialogType", this._dialogType);
        }
      }
                         
            if (this._height != null) {
        if (this._height.isLiteralText()) {
          try {
                       
            java.lang.Integer __height = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._height.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setHeight(__height);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("height", this._height);
        }
      }
                         
            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._language != null) {
        if (this._language.isLiteralText()) {
          try {
                       
            java.lang.String __language = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._language.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLanguage(__language);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("language", this._language);
        }
      }
                          
            if (this._onchange != null) {
        if (this._onchange.isLiteralText()) {
          try {
                       
            java.lang.String __onchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnchange(__onchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onchange", this._onchange);
        }
      }
                        
            if (this._oninit != null) {
        if (this._oninit.isLiteralText()) {
          try {
                       
            java.lang.String __oninit = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._oninit.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOninit(__oninit);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("oninit", this._oninit);
        }
      }
                        
            if (this._onsave != null) {
        if (this._onsave.isLiteralText()) {
          try {
                       
            java.lang.String __onsave = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onsave.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnsave(__onsave);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onsave", this._onsave);
        }
      }
                        
            if (this._onsetup != null) {
        if (this._onsetup.isLiteralText()) {
          try {
                       
            java.lang.String __onsetup = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onsetup.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnsetup(__onsetup);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onsetup", this._onsetup);
        }
      }
                        
            if (this._plugins != null) {
        if (this._plugins.isLiteralText()) {
          try {
                       
            java.lang.String __plugins = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._plugins.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setPlugins(__plugins);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("plugins", this._plugins);
        }
      }
                        
            if (this._readonly != null) {
        if (this._readonly.isLiteralText()) {
          try {
                       
            Boolean __readonly = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._readonly.getExpressionString(),
                      Boolean.class);
         
                        comp.setReadonly(__readonly.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("readonly", this._readonly);
        }
      }
                         
            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._skin != null) {
        if (this._skin.isLiteralText()) {
          try {
                       
            java.lang.String __skin = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._skin.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSkin(__skin);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("skin", this._skin);
        }
      }
                          
            if (this._tabindex != null) {
        if (this._tabindex.isLiteralText()) {
          try {
                       
            java.lang.String __tabindex = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._tabindex.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTabindex(__tabindex);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("tabindex", this._tabindex);
        }
      }
                        
            if (this._theme != null) {
        if (this._theme.isLiteralText()) {
          try {
                       
            java.lang.String __theme = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._theme.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTheme(__theme);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("theme", this._theme);
        }
      }
                         
            if (this._useSeamText != null) {
        if (this._useSeamText.isLiteralText()) {
          try {
                       
            Boolean __useSeamText = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._useSeamText.getExpressionString(),
                      Boolean.class);
         
                        comp.setUseSeamText(__useSeamText.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("useSeamText", this._useSeamText);
        }
      }
                         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._viewMode != null) {
        if (this._viewMode.isLiteralText()) {
          try {
                       
            java.lang.String __viewMode = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._viewMode.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setViewMode(__viewMode);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("viewMode", this._viewMode);
        }
      }
                        
            if (this._width != null) {
        if (this._width.isLiteralText()) {
          try {
                       
            java.lang.Integer __width = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._width.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setWidth(__width);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("width", this._width);
View Full Code Here

Examples of org.richfaces.component.html.HtmlEditor

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlEditor comp = (HtmlEditor) component;
            
            if (this._autoResize != null) {
        if (this._autoResize.isLiteralText()) {
          try {
                       
            Boolean __autoResize = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._autoResize.getExpressionString(),
                      Boolean.class);
         
                        comp.setAutoResize(__autoResize.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("autoResize", this._autoResize);
        }
      }
                         
            if (this._configuration != null) {
        if (this._configuration.isLiteralText()) {
          try {
                       
            java.lang.String __configuration = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._configuration.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setConfiguration(__configuration);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("configuration", this._configuration);
        }
      }
                        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._customPlugins != null) {
        if (this._customPlugins.isLiteralText()) {
          try {
                       
            java.lang.String __customPlugins = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._customPlugins.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCustomPlugins(__customPlugins);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("customPlugins", this._customPlugins);
        }
      }
                        
            if (this._dialogType != null) {
        if (this._dialogType.isLiteralText()) {
          try {
                       
            java.lang.String __dialogType = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._dialogType.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDialogType(__dialogType);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("dialogType", this._dialogType);
        }
      }
                         
            if (this._height != null) {
        if (this._height.isLiteralText()) {
          try {
                       
            java.lang.Integer __height = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._height.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setHeight(__height);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("height", this._height);
        }
      }
                         
            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._language != null) {
        if (this._language.isLiteralText()) {
          try {
                       
            java.lang.String __language = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._language.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLanguage(__language);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("language", this._language);
        }
      }
                          
            if (this._onchange != null) {
        if (this._onchange.isLiteralText()) {
          try {
                       
            java.lang.String __onchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnchange(__onchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onchange", this._onchange);
        }
      }
                        
            if (this._oninit != null) {
        if (this._oninit.isLiteralText()) {
          try {
                       
            java.lang.String __oninit = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._oninit.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOninit(__oninit);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("oninit", this._oninit);
        }
      }
                        
            if (this._onsave != null) {
        if (this._onsave.isLiteralText()) {
          try {
                       
            java.lang.String __onsave = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onsave.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnsave(__onsave);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onsave", this._onsave);
        }
      }
                        
            if (this._onsetup != null) {
        if (this._onsetup.isLiteralText()) {
          try {
                       
            java.lang.String __onsetup = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onsetup.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnsetup(__onsetup);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onsetup", this._onsetup);
        }
      }
                        
            if (this._plugins != null) {
        if (this._plugins.isLiteralText()) {
          try {
                       
            java.lang.String __plugins = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._plugins.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setPlugins(__plugins);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("plugins", this._plugins);
        }
      }
                        
            if (this._readonly != null) {
        if (this._readonly.isLiteralText()) {
          try {
                       
            Boolean __readonly = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._readonly.getExpressionString(),
                      Boolean.class);
         
                        comp.setReadonly(__readonly.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("readonly", this._readonly);
        }
      }
                         
            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._skin != null) {
        if (this._skin.isLiteralText()) {
          try {
                       
            java.lang.String __skin = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._skin.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSkin(__skin);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("skin", this._skin);
        }
      }
                          
            if (this._tabindex != null) {
        if (this._tabindex.isLiteralText()) {
          try {
                       
            java.lang.String __tabindex = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._tabindex.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTabindex(__tabindex);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("tabindex", this._tabindex);
        }
      }
                        
            if (this._theme != null) {
        if (this._theme.isLiteralText()) {
          try {
                       
            java.lang.String __theme = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._theme.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTheme(__theme);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("theme", this._theme);
        }
      }
                         
            if (this._useSeamText != null) {
        if (this._useSeamText.isLiteralText()) {
          try {
                       
            Boolean __useSeamText = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._useSeamText.getExpressionString(),
                      Boolean.class);
         
                        comp.setUseSeamText(__useSeamText.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("useSeamText", this._useSeamText);
        }
      }
                         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._viewMode != null) {
        if (this._viewMode.isLiteralText()) {
          try {
                       
            java.lang.String __viewMode = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._viewMode.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setViewMode(__viewMode);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("viewMode", this._viewMode);
        }
      }
                        
            if (this._width != null) {
        if (this._width.isLiteralText()) {
          try {
                       
            java.lang.Integer __width = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._width.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setWidth(__width);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("width", this._width);
View Full Code Here

Examples of org.richfaces.component.html.HtmlEditor

  /**
   * Test method for {@link org.richfaces.taglib.PanelTag#setProperties(javax.faces.component.UIComponent)}.
   * @throws JspException
   */
  public void testSetPropertiesUIComponent() throws JspException {
    HtmlEditor editor = new HtmlEditor();
    // other test here
  }
View Full Code Here

Examples of org.richfaces.component.html.HtmlEditor

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlEditor comp = (HtmlEditor) component;
            
            if (this._autoResize != null) {
        if (this._autoResize.isLiteralText()) {
          try {
                       
            Boolean __autoResize = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._autoResize.getExpressionString(),
                      Boolean.class);
         
                        comp.setAutoResize(__autoResize.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("autoResize", this._autoResize);
        }
      }
                         
            if (this._configuration != null) {
        if (this._configuration.isLiteralText()) {
          try {
                       
            java.lang.String __configuration = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._configuration.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setConfiguration(__configuration);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("configuration", this._configuration);
        }
      }
                        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._customPlugins != null) {
        if (this._customPlugins.isLiteralText()) {
          try {
                       
            java.lang.String __customPlugins = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._customPlugins.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCustomPlugins(__customPlugins);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("customPlugins", this._customPlugins);
        }
      }
                        
            if (this._dialogType != null) {
        if (this._dialogType.isLiteralText()) {
          try {
                       
            java.lang.String __dialogType = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._dialogType.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDialogType(__dialogType);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("dialogType", this._dialogType);
        }
      }
                         
            if (this._height != null) {
        if (this._height.isLiteralText()) {
          try {
                       
            java.lang.Integer __height = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._height.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setHeight(__height);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("height", this._height);
        }
      }
                         
            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._inputElementType != null) {
        if (this._inputElementType.isLiteralText()) {
          try {
                       
            java.lang.String __inputElementType = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._inputElementType.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setInputElementType(__inputElementType);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("inputElementType", this._inputElementType);
        }
      }
                        
            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._language != null) {
        if (this._language.isLiteralText()) {
          try {
                       
            java.lang.String __language = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._language.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLanguage(__language);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("language", this._language);
        }
      }
                          
            if (this._onchange != null) {
        if (this._onchange.isLiteralText()) {
          try {
                       
            java.lang.String __onchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnchange(__onchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onchange", this._onchange);
        }
      }
                        
            if (this._oninit != null) {
        if (this._oninit.isLiteralText()) {
          try {
                       
            java.lang.String __oninit = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._oninit.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOninit(__oninit);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("oninit", this._oninit);
        }
      }
                        
            if (this._onsave != null) {
        if (this._onsave.isLiteralText()) {
          try {
                       
            java.lang.String __onsave = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onsave.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnsave(__onsave);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onsave", this._onsave);
        }
      }
                        
            if (this._onsetup != null) {
        if (this._onsetup.isLiteralText()) {
          try {
                       
            java.lang.String __onsetup = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onsetup.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnsetup(__onsetup);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onsetup", this._onsetup);
        }
      }
                        
            if (this._plugins != null) {
        if (this._plugins.isLiteralText()) {
          try {
                       
            java.lang.String __plugins = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._plugins.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setPlugins(__plugins);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("plugins", this._plugins);
        }
      }
                        
            if (this._readonly != null) {
        if (this._readonly.isLiteralText()) {
          try {
                       
            Boolean __readonly = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._readonly.getExpressionString(),
                      Boolean.class);
         
                        comp.setReadonly(__readonly.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("readonly", this._readonly);
        }
      }
                         
            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._skin != null) {
        if (this._skin.isLiteralText()) {
          try {
                       
            java.lang.String __skin = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._skin.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSkin(__skin);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("skin", this._skin);
        }
      }
                          
            if (this._tabindex != null) {
        if (this._tabindex.isLiteralText()) {
          try {
                       
            java.lang.String __tabindex = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._tabindex.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTabindex(__tabindex);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("tabindex", this._tabindex);
        }
      }
                        
            if (this._theme != null) {
        if (this._theme.isLiteralText()) {
          try {
                       
            java.lang.String __theme = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._theme.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTheme(__theme);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("theme", this._theme);
        }
      }
                         
            if (this._useSeamText != null) {
        if (this._useSeamText.isLiteralText()) {
          try {
                       
            Boolean __useSeamText = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._useSeamText.getExpressionString(),
                      Boolean.class);
         
                        comp.setUseSeamText(__useSeamText.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("useSeamText", this._useSeamText);
        }
      }
                         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._viewMode != null) {
        if (this._viewMode.isLiteralText()) {
          try {
                       
            java.lang.String __viewMode = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._viewMode.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setViewMode(__viewMode);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("viewMode", this._viewMode);
        }
      }
                        
            if (this._width != null) {
        if (this._width.isLiteralText()) {
          try {
                       
            java.lang.Integer __width = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._width.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setWidth(__width);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("width", this._width);
View Full Code Here

Examples of org.richfaces.component.html.HtmlEditor

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlEditor comp = (HtmlEditor) component;
            
            if (this._autoResize != null) {
        if (this._autoResize.isLiteralText()) {
          try {
                       
            Boolean __autoResize = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._autoResize.getExpressionString(),
                      Boolean.class);
         
                        comp.setAutoResize(__autoResize.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("autoResize", this._autoResize);
        }
      }
                         
            if (this._configuration != null) {
        if (this._configuration.isLiteralText()) {
          try {
                       
            java.lang.String __configuration = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._configuration.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setConfiguration(__configuration);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("configuration", this._configuration);
        }
      }
                        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._customPlugins != null) {
        if (this._customPlugins.isLiteralText()) {
          try {
                       
            java.lang.String __customPlugins = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._customPlugins.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setCustomPlugins(__customPlugins);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("customPlugins", this._customPlugins);
        }
      }
                        
            if (this._dialogType != null) {
        if (this._dialogType.isLiteralText()) {
          try {
                       
            java.lang.String __dialogType = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._dialogType.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDialogType(__dialogType);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("dialogType", this._dialogType);
        }
      }
                         
            if (this._height != null) {
        if (this._height.isLiteralText()) {
          try {
                       
            java.lang.Integer __height = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._height.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setHeight(__height);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("height", this._height);
        }
      }
                         
            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._language != null) {
        if (this._language.isLiteralText()) {
          try {
                       
            java.lang.String __language = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._language.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLanguage(__language);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("language", this._language);
        }
      }
                          
            if (this._onchange != null) {
        if (this._onchange.isLiteralText()) {
          try {
                       
            java.lang.String __onchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnchange(__onchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onchange", this._onchange);
        }
      }
                        
            if (this._oninit != null) {
        if (this._oninit.isLiteralText()) {
          try {
                       
            java.lang.String __oninit = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._oninit.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOninit(__oninit);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("oninit", this._oninit);
        }
      }
                        
            if (this._onsave != null) {
        if (this._onsave.isLiteralText()) {
          try {
                       
            java.lang.String __onsave = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onsave.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnsave(__onsave);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onsave", this._onsave);
        }
      }
                        
            if (this._onsetup != null) {
        if (this._onsetup.isLiteralText()) {
          try {
                       
            java.lang.String __onsetup = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onsetup.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnsetup(__onsetup);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onsetup", this._onsetup);
        }
      }
                        
            if (this._plugins != null) {
        if (this._plugins.isLiteralText()) {
          try {
                       
            java.lang.String __plugins = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._plugins.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setPlugins(__plugins);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("plugins", this._plugins);
        }
      }
                        
            if (this._readonly != null) {
        if (this._readonly.isLiteralText()) {
          try {
                       
            Boolean __readonly = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._readonly.getExpressionString(),
                      Boolean.class);
         
                        comp.setReadonly(__readonly.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("readonly", this._readonly);
        }
      }
                         
            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._skin != null) {
        if (this._skin.isLiteralText()) {
          try {
                       
            java.lang.String __skin = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._skin.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSkin(__skin);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("skin", this._skin);
        }
      }
                          
            if (this._tabindex != null) {
        if (this._tabindex.isLiteralText()) {
          try {
                       
            java.lang.String __tabindex = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._tabindex.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTabindex(__tabindex);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("tabindex", this._tabindex);
        }
      }
                        
            if (this._theme != null) {
        if (this._theme.isLiteralText()) {
          try {
                       
            java.lang.String __theme = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._theme.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTheme(__theme);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("theme", this._theme);
        }
      }
                         
            if (this._useSeamText != null) {
        if (this._useSeamText.isLiteralText()) {
          try {
                       
            Boolean __useSeamText = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._useSeamText.getExpressionString(),
                      Boolean.class);
         
                        comp.setUseSeamText(__useSeamText.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("useSeamText", this._useSeamText);
        }
      }
                         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._viewMode != null) {
        if (this._viewMode.isLiteralText()) {
          try {
                       
            java.lang.String __viewMode = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._viewMode.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setViewMode(__viewMode);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("viewMode", this._viewMode);
        }
      }
                        
            if (this._width != null) {
        if (this._width.isLiteralText()) {
          try {
                       
            java.lang.Integer __width = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._width.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setWidth(__width);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("width", this._width);
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.