Converter converter = getConverter();
value, new SelectItemsIterator(context, this), getConverter()); value, new SelectItemsIterator(context, this), getConverter());
value, new SelectItemsIterator(context, this), getConverter()); value, new SelectItemsIterator(context, this), getConverter());
value, new SelectItemsIterator(context, this), getConverter()); value, new SelectItemsIterator(context, this), getConverter());
value, new SelectItemsIterator(context, this), getConverter()); value, new SelectItemsIterator(context, this), getConverter());
value, new SelectItemsIterator(context, this), getConverter()); value, new SelectItemsIterator(context, this), getConverter());
value, new SelectItemsIterator(context, this), getConverter()); value, new SelectItemsIterator(context, this), getConverter());
value, new SelectItemsIterator(context, this), getConverter()); value, new SelectItemsIterator(context, this), getConverter());
value, new SelectItemsIterator(context, this), getConverter()); value, new SelectItemsIterator(context, this), getConverter());
value, new SelectItemsIterator(context, this), getConverter()); value, new SelectItemsIterator(context, this), getConverter());
/** * The difference with default encoding is: * <li>Every radio button of same 'group' will have same 'name' attribute rendered, relative to UIForm parent. * <li>The 'value' attribute of every radio button is prefixed with client ID of radio button component itself. * <li>No additional (table) markup is being rendered. * <li>Label, if any, is rendered directly after radio button element, without additional markup. */ protected void encodeEndGroup(FacesContext context, UISelectOne radio, Group group) throws IOException { rendererParamsNotNull(context, radio); if (!shouldEncode(radio)) { return; } SelectItem currentItem = RenderKitUtils.getSelectItems(context, radio).next(); String clientId = radio.getClientId(context); Object itemValue = currentItem.getValue(); Converter<?> converter = radio.getConverter(); boolean checked = isChecked(context, radio, itemValue); boolean disabled = Util.componentIsDisabled(radio); ResponseWriter writer = context.getResponseWriter(); assert (writer != null); renderInput(context, writer, radio, clientId, itemValue, converter, checked, disabled, group); if (currentItem.getLabel() != null) { renderLabel(writer, radio, clientId, currentItem, new OptionComponentInfo(radio)); } }
/** * The difference with default encoding is: * <li>Every radio button of same 'group' will have same 'name' attribute rendered, relative to UIForm parent. * <li>The 'value' attribute of every radio button is prefixed with client ID of radio button component itself. * <li>No additional (table) markup is being rendered. * <li>Label, if any, is rendered directly after radio button element, without additional markup. */ protected void encodeEndGroup(FacesContext context, UISelectOne radio, Group group) throws IOException { rendererParamsNotNull(context, radio); if (!shouldEncode(radio)) { return; } SelectItem currentItem = RenderKitUtils.getSelectItems(context, radio).next(); String clientId = radio.getClientId(context); Object itemValue = currentItem.getValue(); Converter<?> converter = radio.getConverter(); boolean checked = isChecked(context, radio, itemValue); boolean disabled = Util.componentIsDisabled(radio); ResponseWriter writer = context.getResponseWriter(); assert (writer != null); renderInput(context, writer, radio, clientId, itemValue, converter, checked, disabled, group); if (currentItem.getLabel() != null) { renderLabel(writer, radio, clientId, currentItem, new OptionComponentInfo(radio)); } }
/** * The difference with default encoding is: * <li>Every radio button of same 'group' will have same 'name' attribute rendered, relative to UIForm parent. * <li>The 'value' attribute of every radio button is prefixed with client ID of radio button component itself. * <li>No additional (table) markup is being rendered. * <li>Label, if any, is rendered directly after radio button element, without additional markup. */ protected void encodeEndGroup(FacesContext context, UISelectOne radio, Group group) throws IOException { rendererParamsNotNull(context, radio); if (!shouldEncode(radio)) { return; } SelectItem currentItem = RenderKitUtils.getSelectItems(context, radio).next(); String clientId = radio.getClientId(context); Object itemValue = currentItem.getValue(); Converter<?> converter = radio.getConverter(); boolean checked = isChecked(context, radio, itemValue); boolean disabled = Util.componentIsDisabled(radio); ResponseWriter writer = context.getResponseWriter(); assert (writer != null); renderInput(context, writer, radio, clientId, itemValue, converter, checked, disabled, group); if (currentItem.getLabel() != null) { renderLabel(writer, radio, clientId, currentItem, new OptionComponentInfo(radio)); } }