Examples of SelectItemGroup


Examples of javax.faces.model.SelectItemGroup

    else if (value instanceof Collection) {
      Collection collection = (Collection) value;
      for (Iterator iter = collection.iterator(); iter.hasNext();) {
        Object currentItem = (Object) iter.next();
        if (currentItem instanceof SelectItemGroup) {
          SelectItemGroup itemGroup = (SelectItemGroup) currentItem;   
          SelectItem[] itemsFromGroup = itemGroup.getSelectItems();
          for (int i = 0; i < itemsFromGroup.length; i++) {
            items.add(itemsFromGroup[i]);
          }
        }
        else {
View Full Code Here

Examples of javax.faces.model.SelectItemGroup

          writer.startElement(HTML.TD_ELEM, selectMany);
         
          writer.startElement(HTML.TABLE_ELEM, selectMany);
          writer.writeAttribute(HTML.BORDER_ATTR, "0", null);

          SelectItemGroup group = (SelectItemGroup) selectItem;
          SelectItem[] selectItems = group.getSelectItems();
         
          for (int i=0; i<selectItems.length; i++) {
            renderGroupOrItemCheckbox(facesContext, selectMany, selectItems[i], useSubmittedValues, lookupSet, converter, pageDirectionLayout);
          }
         
View Full Code Here

Examples of javax.faces.model.SelectItemGroup

       
        boolean isSelectItemGroup = (selectItem instanceof SelectItemGroup);

        if (isSelectItemGroup)
        {
            SelectItemGroup selectItemGroup = (SelectItemGroup) selectItem;
            renderCheckboxGroup(facesContext, uiComponent, selectItemGroup,
                    useSubmittedValues, lookupSet, converter,
                    pageDirectionLayout);
        }
        else
View Full Code Here

Examples of javax.faces.model.SelectItemGroup

    public static Converter getSelectItemConverter(Application facesApplication, Iterator<SelectItem> selectItems) {
        Converter converter = null;
        while (selectItems.hasNext() && converter == null) {
            SelectItem selectItem = selectItems.next();
            if (selectItem instanceof SelectItemGroup) {
                SelectItemGroup selectItemGroup = (SelectItemGroup) selectItem;
                Iterator<SelectItem> groupSelectItems = Iterators.forArray(selectItemGroup.getSelectItems());
                // Recursively get the converter from the SelectItems of the SelectItemGroup
                converter = getSelectItemConverter(facesApplication, groupSelectItems);
            }
            else {
                Class<?> selectItemClass = selectItem.getValue().getClass();
View Full Code Here

Examples of javax.faces.model.SelectItemGroup

            if(!pageDirectionLayout)
            {
                writer.startElement(HTML.TR_ELEM, selectMany);
            }

            SelectItemGroup group = (SelectItemGroup) selectItem;
            SelectItem[] selectItems = group.getSelectItems();
           
            for (SelectItem groupSelectItem : selectItems)
            {
                itemNum = renderGroupOrItemCheckbox(facesContext, selectMany, groupSelectItem, useSubmittedValues,
                                                    lookupSet, converter, pageDirectionLayout, itemNum);
View Full Code Here

Examples of javax.faces.model.SelectItemGroup

        while (selectItemsIter.hasNext())
        {
            SelectItem item = selectItemsIter.next();
            if (item instanceof SelectItemGroup)
            {
                SelectItemGroup itemgroup = (SelectItemGroup) item;
                SelectItem[] selectItems = itemgroup.getSelectItems();
                if (selectItems != null
                        && selectItems.length > 0
                        && matchValue(context, uiComponent, value, Arrays
                                .asList(selectItems).iterator(), converter))
                {
View Full Code Here

Examples of javax.faces.model.SelectItemGroup

        while (selectItemsIter.hasNext())
        {
            SelectItem item = selectItemsIter.next();
            if (item instanceof SelectItemGroup)
            {
                SelectItemGroup itemgroup = (SelectItemGroup) item;
                SelectItem[] selectItems = itemgroup.getSelectItems();
                if (selectItems != null
                        && selectItems.length > 0
                        && isNoSelectionOption(context, uiComponent, value,
                                Arrays.asList(selectItems).iterator(),
                                converter))
View Full Code Here

Examples of javax.faces.model.SelectItemGroup

          writer.startElement(HTML.TD_ELEM, selectOne);

          writer.startElement(HTML.TABLE_ELEM, selectOne);
          writer.writeAttribute(HTML.BORDER_ATTR, "0", null);

          SelectItemGroup group = (SelectItemGroup) selectItem;
          SelectItem[] selectItems = group.getSelectItems();

          for (int i=0; i<selectItems.length; i++) {
            renderGroupOrItemRadio(facesContext, selectOne, selectItems[i], currentValue, converter, pageDirectionLayout);
          }
View Full Code Here

Examples of javax.faces.model.SelectItemGroup

            if(!pageDirectionLayout)
            {
                writer.startElement(HTML.TR_ELEM, selectOne);
            }

            SelectItemGroup group = (SelectItemGroup) selectItem;
            SelectItem[] selectItems = group.getSelectItems();

            for (SelectItem groupSelectItem : selectItems)
            {
                itemNum = renderGroupOrItemRadio(facesContext, selectOne, groupSelectItem, currentValue,
                                                 converter, pageDirectionLayout, itemNum);
View Full Code Here

Examples of javax.faces.model.SelectItemGroup

          writer.startElement(HTML.TD_ELEM, selectMany);
         
          writer.startElement(HTML.TABLE_ELEM, selectMany);
          writer.writeAttribute(HTML.BORDER_ATTR, "0", null);

          SelectItemGroup group = (SelectItemGroup) selectItem;
          SelectItem[] selectItems = group.getSelectItems();
         
          for (int i=0; i<selectItems.length; i++) {
            renderGroupOrItemCheckbox(facesContext, selectMany, selectItems[i], useSubmittedValues, lookupSet, converter, pageDirectionLayout);
          }
         
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.