protected Object getSubmittedValues(UIComponent component) { UISelectMany select = (UISelectMany) component; return (Object[]) select.getSubmittedValue(); }
protected Object getSubmittedValues(UIComponent component) { UISelectMany select = (UISelectMany) component; return (Object[]) select.getSubmittedValue(); }
protected Object[] getSubmittedSelectedValues(UIComponent component) { if (component instanceof UISelectMany) { UISelectMany select = (UISelectMany) component; return (Object[]) select.getSubmittedValue(); } UISelectOne select = (UISelectOne) component; Object val = select.getSubmittedValue(); if (val != null) { return new Object[] { val }; } return null; }
protected Object[] getSubmittedSelectedValues(UIComponent component) { if (component instanceof UISelectMany) { UISelectMany select = (UISelectMany) component; return (Object[]) select.getSubmittedValue(); } UISelectOne select = (UISelectOne) component; Object val = select.getSubmittedValue(); if (val != null) { return new Object[] { val }; } return null; }
protected Object[] getSubmittedSelectedValues(UIComponent component) { if (component instanceof UISelectMany) { UISelectMany select = (UISelectMany) component; return (Object[]) select.getSubmittedValue(); } UISelectOne select = (UISelectOne) component; Object val = select.getSubmittedValue(); if (val != null) { return new Object[] { val }; } return null; }
protected Object[] getSubmittedSelectedValues(UIComponent component) { if (component instanceof UISelectMany) { UISelectMany select = (UISelectMany) component; return (Object[]) select.getSubmittedValue(); } UISelectOne select = (UISelectOne) component; Object val = select.getSubmittedValue(); if (val != null) { return new Object[] { val }; } return null; }
protected Object[] getSubmittedSelectedValues(UIComponent component) { if (component instanceof UISelectMany) { UISelectMany select = (UISelectMany) component; return (Object[]) select.getSubmittedValue(); } UISelectOne select = (UISelectOne) component; Object val = select.getSubmittedValue(); if (val != null) { return new Object[] { val }; } return null; }
protected Object[] getSubmittedSelectedValues(UIComponent uiComponent) { if (uiComponent instanceof UISelectMany) { UISelectMany uiSelectMany = (UISelectMany) uiComponent; return (Object[]) uiSelectMany.getSubmittedValue(); } if (uiComponent instanceof UISelectOne) { UISelectOne uiSelectOne = (UISelectOne) uiComponent; Object submittedValue = uiSelectOne.getSubmittedValue(); if (submittedValue != null) { return new Object[]{submittedValue}; } } return null; }
/** * Convenient utility method that returns the currently submitted values of * a UISelectMany component as a Set, of which the contains method can then be * easily used to determine if a select item is currently selected. * Calling the contains method of this Set with the renderable (String converted) item value * as argument returns true if this item is selected. * * @param uiSelectMany * @return Set containing all currently selected values */ public static Set getSubmittedValuesAsSet(FacesContext context, UIComponent component, Converter converter, UISelectMany uiSelectMany) { Object submittedValues = uiSelectMany.getSubmittedValue(); if (submittedValues == null) { return null; } if(converter != null) { converter = new PassThroughAsStringConverter(converter); } return internalSubmittedOrSelectedValuesAsSet(context, component, converter, uiSelectMany, submittedValues); }
/** * Convenient utility method that returns the currently submitted values of * a UISelectMany component as a Set, of which the contains method can then be * easily used to determine if a select item is currently selected. * Calling the contains method of this Set with the renderable (String converted) item value * as argument returns true if this item is selected. * @param uiSelectMany * @return Set containing all currently selected values */ public static Set getSubmittedValuesAsSet(FacesContext context, UIComponent component, Converter converter, UISelectMany uiSelectMany) { Object submittedValues = uiSelectMany.getSubmittedValue(); if (submittedValues == null) { return null; } if(converter != null) { converter = new PassThroughAsStringConverter(converter); } return internalSubmittedOrSelectedValuesAsSet(context, component, converter, uiSelectMany, submittedValues); }
/** * Convenient utility method that returns the currently submitted values of * a UISelectMany component as a Set, of which the contains method can then be * easily used to determine if a select item is currently selected. * Calling the contains method of this Set with the renderable (String converted) item value * as argument returns true if this item is selected. * * @param uiSelectMany * @return Set containing all currently selected values */ public static Set getSubmittedValuesAsSet(FacesContext context, UIComponent component, Converter converter, UISelectMany uiSelectMany) { Object submittedValues = uiSelectMany.getSubmittedValue(); if (submittedValues == null) { return null; } if(converter != null) { converter = new PassThroughAsStringConverter(converter); } return internalSubmittedOrSelectedValuesAsSet(context, component, converter, uiSelectMany, submittedValues); }
/** * Convenient utility method that returns the currently submitted values of * a UISelectMany component as a Set, of which the contains method can then be * easily used to determine if a select item is currently selected. * Calling the contains method of this Set with the renderable (String converted) item value * as argument returns true if this item is selected. * @param uiSelectMany * @return Set containing all currently selected values */ public static Set getSubmittedValuesAsSet(FacesContext context, UIComponent component, Converter converter, UISelectMany uiSelectMany) { Object submittedValues = uiSelectMany.getSubmittedValue(); if (submittedValues == null) { return null; } if(converter != null) { converter = new PassThroughAsStringConverter(converter); } return internalSubmittedOrSelectedValuesAsSet(context, component, converter, uiSelectMany, submittedValues); }
/** * Convenient utility method that returns the currently submitted values of * a UISelectMany component as a Set, of which the contains method can then be * easily used to determine if a select item is currently selected. * Calling the contains method of this Set with the renderable (String converted) item value * as argument returns true if this item is selected. * @param uiSelectMany * @return Set containing all currently selected values */ public static Set getSubmittedValuesAsSet(FacesContext context, UIComponent component, Converter converter, UISelectMany uiSelectMany) { Object submittedValues = uiSelectMany.getSubmittedValue(); if (submittedValues == null) { return null; } if(converter != null) { converter = new PassThroughAsStringConverter(converter); } return internalSubmittedOrSelectedValuesAsSet(context, component, converter, uiSelectMany, submittedValues); }
/** * Convenient utility method that returns the currently submitted values of * a UISelectMany component as a Set, of which the contains method can then be * easily used to determine if a select item is currently selected. * Calling the contains method of this Set with the renderable (String converted) item value * as argument returns true if this item is selected. * @param uiSelectMany * @return Set containing all currently selected values */ public static Set getSubmittedValuesAsSet(FacesContext context, UIComponent component, Converter converter, UISelectMany uiSelectMany) { Object submittedValues = uiSelectMany.getSubmittedValue(); if (submittedValues == null) { return null; } if (converter != null) { converter = new PassThroughAsStringConverter(converter); } return internalSubmittedOrSelectedValuesAsSet(context, component, converter, uiSelectMany, submittedValues, false); }
/** * Convenient utility method that returns the currently submitted values of * a UISelectMany component as a Set, of which the contains method can then be * easily used to determine if a select item is currently selected. * Calling the contains method of this Set with the renderable (String converted) item value * as argument returns true if this item is selected. * @param uiSelectMany * @return Set containing all currently selected values */ public static Set getSubmittedValuesAsSet(FacesContext context, UIComponent component, Converter converter, UISelectMany uiSelectMany) { Object submittedValues = uiSelectMany.getSubmittedValue(); if (submittedValues == null) { return null; } if (converter != null) { converter = new PassThroughAsStringConverter(converter); } return internalSubmittedOrSelectedValuesAsSet(context, component, converter, uiSelectMany, submittedValues, false); }