Examples of HtmlSelectOneMenu


Examples of org.metawidget.statically.faces.component.html.widgetbuilder.HtmlSelectOneMenu

         panelGrid.putAttribute("columns", "2");
         panelGrid.putAttribute("columnClasses", ",remove-column");

         // Select menu at bottom

         HtmlSelectOneMenu select = new HtmlSelectOneMenu();
         String selectId = dataTable.getAttribute("id") + "Select";
         select.putAttribute("id", selectId);
         String requestScopedValue = "requestScope['" + selectId + "']";
         select.setValue(StaticFacesUtils.wrapExpression(requestScopedValue));
         String simpleComponentType = ClassUtils.getSimpleName(componentType);
         String controllerName = StringUtils.decapitalize(simpleComponentType);
         select.setConverter(StaticFacesUtils.wrapExpression(controllerName + "Bean.converter"));
         Map<String, String> emptyAttributes = CollectionUtils.newHashMap();
         addSelectItems(select, StaticFacesUtils.wrapExpression(controllerName + "Bean.all"), emptyAttributes);
         panelGrid.getChildren().add(select);

         // Create 'Add' button
View Full Code Here

Examples of org.metawidget.statically.faces.component.html.widgetbuilder.HtmlSelectOneMenu

      String facesLookup = attributes.get(FACES_LOOKUP);

      if (facesLookup != null && !"".equals(facesLookup))
      {
         HtmlSelectOneMenu select = new HtmlSelectOneMenu();
         addSelectItems(select, facesLookup, attributes);
         return select;
      }

      // Lookups

      String lookup = attributes.get(LOOKUP);

      if (lookup != null && !"".equals(lookup))
      {
         HtmlSelectOneMenu select = new HtmlSelectOneMenu();
         addSelectItems(select, CollectionUtils.fromString(lookup),
                  CollectionUtils.fromString(attributes.get(LOOKUP_LABELS)));
         return select;
      }
View Full Code Here

Examples of org.metawidget.statically.faces.component.html.widgetbuilder.HtmlSelectOneMenu

      // Change the labels of the f:selectItems in the h:select widget (when FACES_LOOKUP is present)
      String facesLookup = attributes.get(FACES_LOOKUP);

      if (facesLookup != null && !"".equals(facesLookup))
      {
         HtmlSelectOneMenu select = new HtmlSelectOneMenu();
         addSelectItems(select, facesLookup, attributes);
         return select;
      }

      // Render collection tables with links
View Full Code Here

Examples of org.metawidget.statically.faces.component.html.widgetbuilder.HtmlSelectOneMenu

         panelGrid.putAttribute("columns", "2");
         panelGrid.putAttribute("columnClasses", ",remove-column");

         // Select menu at bottom

         HtmlSelectOneMenu select = new HtmlSelectOneMenu();
         String selectId = dataTable.getAttribute("id") + "Select";
         select.putAttribute("id", selectId);
         String requestScopedValue = "requestScope['" + selectId + "']";
         select.setValue(StaticFacesUtils.wrapExpression(requestScopedValue));
         String simpleComponentType = ClassUtils.getSimpleName(componentType);
         String controllerName = StringUtils.decapitalize(simpleComponentType);
         select.setConverter(StaticFacesUtils.wrapExpression(controllerName + "Bean.converter"));
         addSelectItems(select, StaticFacesUtils.wrapExpression(controllerName + "Bean.all"), attributes);
         panelGrid.getChildren().add(select);

         // Create 'Add' button
View Full Code Here

Examples of org.metawidget.statically.faces.component.html.widgetbuilder.HtmlSelectOneMenu

      String facesLookup = attributes.get(FACES_LOOKUP);

      if (facesLookup != null && !"".equals(facesLookup))
      {
         HtmlSelectOneMenu select = new HtmlSelectOneMenu();
         addSelectItems(select, facesLookup, attributes);
         return select;
      }

      // Lookups

      String lookup = attributes.get(LOOKUP);

      if (lookup != null && !"".equals(lookup))
      {
         HtmlSelectOneMenu select = new HtmlSelectOneMenu();
         addSelectItems(select, CollectionUtils.fromString(lookup),
                  CollectionUtils.fromString(attributes.get(LOOKUP_LABELS)));
         return select;
      }
View Full Code Here

Examples of org.metawidget.statically.faces.component.html.widgetbuilder.HtmlSelectOneMenu

     
      // Change the labels of the f:selectItems in the h:select widget (when FACES_LOOKUP is present)
      String facesLookup = attributes.get( FACES_LOOKUP );

      if ( facesLookup != null && !"".equals( facesLookup ) ) {
         HtmlSelectOneMenu select = new HtmlSelectOneMenu();
         addSelectItems( select, facesLookup, attributes );
         return select;
      }

      // Render collection tables with links
View Full Code Here

Examples of org.metawidget.statically.faces.component.html.widgetbuilder.HtmlSelectOneMenu

         panelGrid.putAttribute("columns", "2");
         panelGrid.putAttribute("columnClasses", ",remove-column");

         // Select menu at bottom

         HtmlSelectOneMenu select = new HtmlSelectOneMenu();
         String selectId = dataTable.getAttribute("id") + "Select";
         select.putAttribute("id", selectId);
         String requestScopedValue = "requestScope['" + selectId + "']";
         select.setValue(StaticFacesUtils.wrapExpression(requestScopedValue));
         String simpleComponentType = ClassUtils.getSimpleName(componentType);
         String controllerName = StringUtils.decapitalize(simpleComponentType);
         select.setConverter(StaticFacesUtils.wrapExpression(controllerName + "Bean.converter"));
         addSelectItems(select, StaticFacesUtils.wrapExpression(controllerName + "Bean.all"), attributes);
         panelGrid.getChildren().add(select);

         // Create 'Add' button
View Full Code Here

Examples of org.metawidget.statically.faces.component.html.widgetbuilder.HtmlSelectOneMenu

         panelGrid.putAttribute("columns", "2");
         panelGrid.putAttribute("columnClasses", ",remove-column");

         // Select menu at bottom

         HtmlSelectOneMenu select = new HtmlSelectOneMenu();
         String selectId = dataTable.getAttribute("id") + "Select";
         select.putAttribute("id", selectId);
         String requestScopedValue = "requestScope['" + selectId + "']";
         select.setValue(StaticFacesUtils.wrapExpression(requestScopedValue));
         String simpleComponentType = ClassUtils.getSimpleName(componentType);
         String controllerName = StringUtils.decapitalize(simpleComponentType);
         select.setConverter(StaticFacesUtils.wrapExpression(controllerName + "Bean.converter"));
         Map<String, String> emptyAttributes = CollectionUtils.newHashMap();
         addSelectItems(select, StaticFacesUtils.wrapExpression(controllerName + "Bean.all"), emptyAttributes);
         panelGrid.getChildren().add(select);

         // Create 'Add' button
View Full Code Here

Examples of org.metawidget.statically.faces.component.html.widgetbuilder.HtmlSelectOneMenu

     
      // Change the labels of the f:selectItems in the h:select widget (when FACES_LOOKUP is present)
      String facesLookup = attributes.get( FACES_LOOKUP );

      if ( facesLookup != null && !"".equals( facesLookup ) ) {
         HtmlSelectOneMenu select = new HtmlSelectOneMenu();
         addSelectItems( select, facesLookup, attributes );
         return select;
      }

      // Render collection tables with links
View Full Code Here

Examples of org.metawidget.statically.faces.component.html.widgetbuilder.HtmlSelectOneMenu

         panelGrid.putAttribute("columns", "2");
         panelGrid.putAttribute("columnClasses", ",remove-column");

         // Select menu at bottom

         HtmlSelectOneMenu select = new HtmlSelectOneMenu();
         String selectId = dataTable.getAttribute("id") + "Select";
         select.putAttribute("id", selectId);
         String requestScopedValue = "requestScope['" + selectId + "']";
         select.setValue(StaticFacesUtils.wrapExpression(requestScopedValue));
         String simpleComponentType = ClassUtils.getSimpleName(componentType);
         String controllerName = StringUtils.decapitalize(simpleComponentType);
         select.setConverter(StaticFacesUtils.wrapExpression(controllerName + "Bean.converter"));
         addSelectItems(select, StaticFacesUtils.wrapExpression(controllerName + "Bean.all"), attributes);
         panelGrid.getChildren().add(select);

         // Create 'Add' button
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.