Package org.richfaces.component

Examples of org.richfaces.component.UIPickList


      super();
    }

    public void decode(FacesContext context, UIComponent component) {

    UIPickList picklist = (UIPickList) component;
    if (!(picklist instanceof EditableValueHolder)) {
        throw new IllegalArgumentException("Component " + picklist.getClientId(context) + " is not an EditableValueHolder");
    }
 
    String hiddenClientId = picklist.getClientId(context) + HIDDEN_SUFFIX;
    Map <String, String> paramMap = context.getExternalContext().getRequestParameterMap();
 
    if (picklist.isDisabled()) {
        return;
    }
 
    String value = paramMap.get(hiddenClientId);
    if (value != null) {
View Full Code Here


    public Object getConvertedValue(FacesContext context, UIComponent component, Object submittedValue) throws ConverterException {
     
      Object convertedValue = null;
     
      if(component instanceof UIPickList) {
        UIPickList pickList = (UIPickList)component;
        convertedValue = SelectUtils.getConvertedUISelectManyValue(context, pickList, (String[]) submittedValue);
      }
     
        return convertedValue;
    }
View Full Code Here

  super();
    }

    public void decode(FacesContext context, UIComponent component) {

  UIPickList picklist = (UIPickList) component;
  if (!(picklist instanceof EditableValueHolder)) {
      throw new IllegalArgumentException("Component " + picklist.getClientId(context) + " is not an EditableValueHolder");
  }

  String hiddenClientId = picklist.getClientId(context) + HIDDEN_SUFFIX;
  Map paramValuesMap = context.getExternalContext().getRequestParameterValuesMap();

  if (picklist.isDisabled()) {
      return;
  }

  if (paramValuesMap.containsKey(hiddenClientId)) {
      String[] valuesInline = (String[]) paramValuesMap.get(hiddenClientId);
View Full Code Here

      super();
    }

    public void decode(FacesContext context, UIComponent component) {

    UIPickList picklist = (UIPickList) component;
    if (!(picklist instanceof EditableValueHolder)) {
        throw new IllegalArgumentException("Component " + picklist.getClientId(context) + " is not an EditableValueHolder");
    }
 
    String hiddenClientId = picklist.getClientId(context) + HIDDEN_SUFFIX;
    Map <String, String[]> paramValuesMap = context.getExternalContext().getRequestParameterValuesMap();
 
    if (picklist.isDisabled()) {
        return;
    }
 
    if (paramValuesMap.containsKey(hiddenClientId)) {
       
View Full Code Here

    public Object getConvertedValue(FacesContext context, UIComponent component, Object submittedValue) throws ConverterException {
     
      Object convertedValue = null;
     
      if(component instanceof UIPickList) {
        UIPickList pickList = (UIPickList)component;
        convertedValue = SelectUtils.getConvertedUISelectManyValue(context, pickList, (String[]) submittedValue);
      }
     
        return convertedValue;
    }
View Full Code Here

        super();
    }
   
    public void decode(FacesContext context, UIComponent component) {
       
        UIPickList picklist = (UIPickList) component;
        if (!(picklist instanceof EditableValueHolder)) {
            throw new IllegalArgumentException("Component "
                    + picklist.getClientId(context)
                    + " is not an EditableValueHolder");
        }
       
        String hiddenClientId = picklist.getClientId(context) + HIDDEN_SUFFIX;
        Map<String, String> paramMap = context.getExternalContext()
                .getRequestParameterMap();
       
        if (picklist.isDisabled()) {
            return;
        }
       
        String value = paramMap.get(hiddenClientId);
        if (value != null) {
View Full Code Here

            throws ConverterException {
       
        Object convertedValue = null;
       
        if (component instanceof UIPickList) {
            UIPickList pickList = (UIPickList) component;
            convertedValue = SelectUtils.getConvertedUISelectManyValue(context,
                    pickList, (String[]) submittedValue);
        }
       
        return convertedValue;
View Full Code Here

  super();
    }

    public void decode(FacesContext context, UIComponent component) {

  UIPickList picklist = (UIPickList) component;
  if (!(picklist instanceof EditableValueHolder)) {
      throw new IllegalArgumentException("Component " + picklist.getClientId(context) + " is not an EditableValueHolder");
  }

  String hiddenClientId = picklist.getClientId(context) + HIDDEN_SUFFIX;
  Map paramValuesMap = context.getExternalContext().getRequestParameterValuesMap();

  if (picklist.isDisabled()) {
      return;
  }

  if (paramValuesMap.containsKey(hiddenClientId)) {
      String[] valuesInline = (String[]) paramValuesMap.get(hiddenClientId);
View Full Code Here

TOP

Related Classes of org.richfaces.component.UIPickList

Copyright © 2018 www.massapicom. 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.