Examples of HtmlMenuGroup


Examples of org.richfaces.component.html.HtmlMenuGroup

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlMenuGroup comp = (HtmlMenuGroup) component;
             setConverterProperty(comp, this._converter);
                  
            if (this._direction != null) {
        if (this._direction.isLiteralText()) {
          try {
                       
            java.lang.String __direction = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._direction.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDirection(__direction);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("direction", this._direction);
        }
      }
                        
            if (this._disabled != null) {
        if (this._disabled.isLiteralText()) {
          try {
                       
            Boolean __disabled = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._disabled.getExpressionString(),
                      Boolean.class);
         
                        comp.setDisabled(__disabled.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("disabled", this._disabled);
        }
      }
                        
            if (this._event != null) {
        if (this._event.isLiteralText()) {
          try {
                       
            java.lang.String __event = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._event.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setEvent(__event);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("event", this._event);
        }
      }
                         
            if (this._icon != null) {
        if (this._icon.isLiteralText()) {
          try {
                       
            java.lang.String __icon = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._icon.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setIcon(__icon);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("icon", this._icon);
        }
      }
                        
            if (this._iconClass != null) {
        if (this._iconClass.isLiteralText()) {
          try {
                       
            java.lang.String __iconClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._iconClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setIconClass(__iconClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("iconClass", this._iconClass);
        }
      }
                        
            if (this._iconDisabled != null) {
        if (this._iconDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __iconDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._iconDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setIconDisabled(__iconDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("iconDisabled", this._iconDisabled);
        }
      }
                        
            if (this._iconFolder != null) {
        if (this._iconFolder.isLiteralText()) {
          try {
                       
            java.lang.String __iconFolder = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._iconFolder.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setIconFolder(__iconFolder);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("iconFolder", this._iconFolder);
        }
      }
                        
            if (this._iconFolderDisabled != null) {
        if (this._iconFolderDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __iconFolderDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._iconFolderDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setIconFolderDisabled(__iconFolderDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("iconFolderDisabled", this._iconFolderDisabled);
        }
      }
                        
            if (this._iconStyle != null) {
        if (this._iconStyle.isLiteralText()) {
          try {
                       
            java.lang.String __iconStyle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._iconStyle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setIconStyle(__iconStyle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("iconStyle", this._iconStyle);
        }
      }
                         
            if (this._labelClass != null) {
        if (this._labelClass.isLiteralText()) {
          try {
                       
            java.lang.String __labelClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._labelClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLabelClass(__labelClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("labelClass", this._labelClass);
        }
      }
                         
            if (this._onclose != null) {
        if (this._onclose.isLiteralText()) {
          try {
                       
            java.lang.String __onclose = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onclose.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnclose(__onclose);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onclose", this._onclose);
        }
      }
                           
            if (this._onopen != null) {
        if (this._onopen.isLiteralText()) {
          try {
                       
            java.lang.String __onopen = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onopen.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnopen(__onopen);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onopen", this._onopen);
        }
      }
                         
            if (this._selectClass != null) {
        if (this._selectClass.isLiteralText()) {
          try {
                       
            java.lang.String __selectClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selectClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSelectClass(__selectClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selectClass", this._selectClass);
        }
      }
                        
            if (this._selectStyle != null) {
        if (this._selectStyle.isLiteralText()) {
          try {
                       
            java.lang.String __selectStyle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selectStyle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSelectStyle(__selectStyle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selectStyle", this._selectStyle);
        }
      }
                        
            if (this._showDelay != null) {
        if (this._showDelay.isLiteralText()) {
          try {
                       
            java.lang.Integer __showDelay = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._showDelay.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setShowDelay(__showDelay);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("showDelay", this._showDelay);
        }
      }
                          
            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);
View Full Code Here

Examples of org.richfaces.component.html.HtmlMenuGroup

        } else {
            resources = groupManager.findResourcesForResourceGroup(EnterpriseFacesContextUtility.getSubject(),
                currentResourceGroup.getId(), null);
        }

        HtmlMenuGroup membersMenuItem = new HtmlMenuGroup();
        membersMenuItem.setValue("Members");
        membersMenuItem.setId("menu_groupMembers_" + currentResourceGroup.getId());
        membersMenuItem.setStyle("color: black;");

        for (Resource res : resources) {
            HtmlMenuItem menuItem = new HtmlMenuItem();
            menuItem.setValue(res.getName());
            menuItem.setId("groupMember_" + res.getId());

            String url = FunctionTagLibrary.getDefaultResourceTabURL() + "?id=" + res.getId();

            menuItem.setSubmitMode("none");
            menuItem.setOnclick("document.location.href='" + url + "'");

            membersMenuItem.getChildren().add(menuItem);
        }

        menu.getChildren().add(membersMenuItem);
    }
View Full Code Here

Examples of org.richfaces.component.html.HtmlMenuGroup

        String requestURL = request.getRequestURL().toString().toLowerCase();
        boolean onMonitorGraphsSubtab = (requestURL.indexOf("/monitor/graphs.xhtml") != -1);

        // addChartToGraph menu only if you're looking at the graphs
        if (onMonitorGraphsSubtab && descriptors != null) {
            HtmlMenuGroup measurementMenu = new HtmlMenuGroup();
            measurementMenu.setValue("Add Graph to View");
            menu.getChildren().add(measurementMenu);
            measurementMenu.setDisabled(descriptors.isEmpty());

            for (MetricMenuItemDescriptor descriptor : descriptors) {
                HtmlMenuItem menuItem = new HtmlMenuItem();
                menuItem.setValue(descriptor.getName());
                menuItem.setId(descriptor.getMenuItemId());

                String onClickAddMeasurements = "addMetric('" + descriptor.getMetricToken() + "');";
                String onClickRefreshPage = "setTimeout(window.location.reload(), 5000);"; // refresh after 5 secs

                menuItem.setSubmitMode("none");
                menuItem.setOnclick(onClickAddMeasurements + onClickRefreshPage);

                measurementMenu.getChildren().add(menuItem);
            }
        }
    }
View Full Code Here

Examples of org.richfaces.component.html.HtmlMenuGroup

        }
    }

    private void addGenericSubMenu(String menuName, List<MenuItemDescriptor> descriptors) {
        if (descriptors != null) {
            HtmlMenuGroup subMenu = new HtmlMenuGroup();
            subMenu.setValue(menuName);
            menu.getChildren().add(subMenu);
            subMenu.setDisabled(descriptors.isEmpty());

            for (MenuItemDescriptor descriptor : descriptors) {
                HtmlMenuItem menuItem = new HtmlMenuItem();
                menuItem.setValue(descriptor.getName());
                menuItem.setId(descriptor.getMenuItemId());

                menuItem.setSubmitMode("none");
                menuItem.setOnclick("document.location.href='" + descriptor.getUrl() + "'");

                subMenu.getChildren().add(menuItem);
            }
        }
    }
View Full Code Here

Examples of org.richfaces.component.html.HtmlMenuGroup

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlMenuGroup comp = (HtmlMenuGroup) component;
             setConverterProperty(comp, this._converter);
                  
            if (this._direction != null) {
        if (this._direction.isLiteralText()) {
          try {
                       
            java.lang.String __direction = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._direction.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDirection(__direction);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("direction", this._direction);
        }
      }
                        
            if (this._disabled != null) {
        if (this._disabled.isLiteralText()) {
          try {
                       
            Boolean __disabled = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._disabled.getExpressionString(),
                      Boolean.class);
         
                        comp.setDisabled(__disabled.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("disabled", this._disabled);
        }
      }
                        
            if (this._event != null) {
        if (this._event.isLiteralText()) {
          try {
                       
            java.lang.String __event = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._event.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setEvent(__event);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("event", this._event);
        }
      }
                         
            if (this._icon != null) {
        if (this._icon.isLiteralText()) {
          try {
                       
            java.lang.String __icon = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._icon.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setIcon(__icon);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("icon", this._icon);
        }
      }
                        
            if (this._iconClass != null) {
        if (this._iconClass.isLiteralText()) {
          try {
                       
            java.lang.String __iconClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._iconClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setIconClass(__iconClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("iconClass", this._iconClass);
        }
      }
                        
            if (this._iconDisabled != null) {
        if (this._iconDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __iconDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._iconDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setIconDisabled(__iconDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("iconDisabled", this._iconDisabled);
        }
      }
                        
            if (this._iconFolder != null) {
        if (this._iconFolder.isLiteralText()) {
          try {
                       
            java.lang.String __iconFolder = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._iconFolder.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setIconFolder(__iconFolder);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("iconFolder", this._iconFolder);
        }
      }
                        
            if (this._iconFolderDisabled != null) {
        if (this._iconFolderDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __iconFolderDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._iconFolderDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setIconFolderDisabled(__iconFolderDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("iconFolderDisabled", this._iconFolderDisabled);
        }
      }
                        
            if (this._iconStyle != null) {
        if (this._iconStyle.isLiteralText()) {
          try {
                       
            java.lang.String __iconStyle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._iconStyle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setIconStyle(__iconStyle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("iconStyle", this._iconStyle);
        }
      }
                         
            if (this._labelClass != null) {
        if (this._labelClass.isLiteralText()) {
          try {
                       
            java.lang.String __labelClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._labelClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLabelClass(__labelClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("labelClass", this._labelClass);
        }
      }
                         
            if (this._onclose != null) {
        if (this._onclose.isLiteralText()) {
          try {
                       
            java.lang.String __onclose = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onclose.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnclose(__onclose);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onclose", this._onclose);
        }
      }
                           
            if (this._onopen != null) {
        if (this._onopen.isLiteralText()) {
          try {
                       
            java.lang.String __onopen = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onopen.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnopen(__onopen);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onopen", this._onopen);
        }
      }
                         
            if (this._selectClass != null) {
        if (this._selectClass.isLiteralText()) {
          try {
                       
            java.lang.String __selectClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selectClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSelectClass(__selectClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selectClass", this._selectClass);
        }
      }
                        
            if (this._selectStyle != null) {
        if (this._selectStyle.isLiteralText()) {
          try {
                       
            java.lang.String __selectStyle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selectStyle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSelectStyle(__selectStyle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selectStyle", this._selectStyle);
        }
      }
                        
            if (this._showDelay != null) {
        if (this._showDelay.isLiteralText()) {
          try {
                       
            java.lang.Integer __showDelay = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._showDelay.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setShowDelay(__showDelay);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("showDelay", this._showDelay);
        }
      }
                          
            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);
View Full Code Here

Examples of org.richfaces.component.html.HtmlMenuGroup

     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlMenuGroup comp = (HtmlMenuGroup) component;
             setConverterProperty(comp, this._converter);
                  
            if (this._direction != null) {
        if (this._direction.isLiteralText()) {
          try {
                       
            java.lang.String __direction = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._direction.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDirection(__direction);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("direction", this._direction);
        }
      }
                        
            if (this._disabled != null) {
        if (this._disabled.isLiteralText()) {
          try {
                       
            Boolean __disabled = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._disabled.getExpressionString(),
                      Boolean.class);
         
                        comp.setDisabled(__disabled.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("disabled", this._disabled);
        }
      }
                        
            if (this._event != null) {
        if (this._event.isLiteralText()) {
          try {
                       
            java.lang.String __event = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._event.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setEvent(__event);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("event", this._event);
        }
      }
                         
            if (this._icon != null) {
        if (this._icon.isLiteralText()) {
          try {
                       
            java.lang.String __icon = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._icon.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setIcon(__icon);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("icon", this._icon);
        }
      }
                        
            if (this._iconClass != null) {
        if (this._iconClass.isLiteralText()) {
          try {
                       
            java.lang.String __iconClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._iconClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setIconClass(__iconClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("iconClass", this._iconClass);
        }
      }
                        
            if (this._iconDisabled != null) {
        if (this._iconDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __iconDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._iconDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setIconDisabled(__iconDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("iconDisabled", this._iconDisabled);
        }
      }
                        
            if (this._iconFolder != null) {
        if (this._iconFolder.isLiteralText()) {
          try {
                       
            java.lang.String __iconFolder = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._iconFolder.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setIconFolder(__iconFolder);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("iconFolder", this._iconFolder);
        }
      }
                        
            if (this._iconFolderDisabled != null) {
        if (this._iconFolderDisabled.isLiteralText()) {
          try {
                       
            java.lang.String __iconFolderDisabled = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._iconFolderDisabled.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setIconFolderDisabled(__iconFolderDisabled);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("iconFolderDisabled", this._iconFolderDisabled);
        }
      }
                        
            if (this._iconStyle != null) {
        if (this._iconStyle.isLiteralText()) {
          try {
                       
            java.lang.String __iconStyle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._iconStyle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setIconStyle(__iconStyle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("iconStyle", this._iconStyle);
        }
      }
                         
            if (this._labelClass != null) {
        if (this._labelClass.isLiteralText()) {
          try {
                       
            java.lang.String __labelClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._labelClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLabelClass(__labelClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("labelClass", this._labelClass);
        }
      }
                         
            if (this._onclose != null) {
        if (this._onclose.isLiteralText()) {
          try {
                       
            java.lang.String __onclose = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onclose.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnclose(__onclose);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onclose", this._onclose);
        }
      }
                           
            if (this._onopen != null) {
        if (this._onopen.isLiteralText()) {
          try {
                       
            java.lang.String __onopen = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onopen.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnopen(__onopen);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onopen", this._onopen);
        }
      }
                         
            if (this._selectClass != null) {
        if (this._selectClass.isLiteralText()) {
          try {
                       
            java.lang.String __selectClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selectClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSelectClass(__selectClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selectClass", this._selectClass);
        }
      }
                        
            if (this._selectStyle != null) {
        if (this._selectStyle.isLiteralText()) {
          try {
                       
            java.lang.String __selectStyle = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selectStyle.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSelectStyle(__selectStyle);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selectStyle", this._selectStyle);
        }
      }
                        
            if (this._showDelay != null) {
        if (this._showDelay.isLiteralText()) {
          try {
                       
            java.lang.Integer __showDelay = (java.lang.Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._showDelay.getExpressionString(),
                      java.lang.Integer.class);
         
                        comp.setShowDelay(__showDelay);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("showDelay", this._showDelay);
        }
      }
                          
            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);
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.