Examples of ConverterException


Examples of javax.faces.convert.ConverterException

        {
            converter = findUIOutputConverter(facesContext, output);
        }
        catch (FacesException e)
        {
            throw new ConverterException(e);
        }

        return converter == null ? submittedValue : converter
                .getAsObject(facesContext, output, (String) submittedValue);
    }
View Full Code Here

Examples of javax.faces.convert.ConverterException

            return null;
        }

        if (!(submittedValue instanceof String[]))
        {
            throw new ConverterException("Submitted value of type String[] for component : "
                    + getPathToComponent(selectMany) + "expected");
        }

        return org.apache.myfaces.shared_tomahawk.renderkit._SharedRendererUtils.getConvertedUISelectManyValue(facesContext,
                selectMany, (String[]) submittedValue);
View Full Code Here

Examples of javax.faces.convert.ConverterException

      else if (typeIdx == _PERCENT_TYPE)
      {
        params = new Object[] {label, value, fmt.format(_EXAMPLE_PERCENT)};
      }
       
      throw new ConverterException(
        getConvertMessage(context, component, value, params));
    }

    // if we set setParseIntegerOnly(isIntegerOnly()) - This may result in
    // the formatter stopping to parse after the first decimal point.
View Full Code Here

Examples of javax.faces.convert.ConverterException

    if (submittedValue == null) {
      return null;
    } else {
      if (!(submittedValue instanceof String[])) {
        throw new ConverterException("Submitted value of type String[] for component : "
            + component.getClientId(facesContext) + "expected");
      }
    }
    return getConvertedUISelectManyValue(facesContext, (UISelectMany) component, (String[]) submittedValue);
  }
View Full Code Here

Examples of javax.faces.convert.ConverterException

    if (pp.getIndex() != value.length())
    {
      Object label = ConverterUtils.getComponentLabel(component);
      Object[] params = {label, value, getPattern()};
      throw new ConverterException(
        getConvertMessage(context, component, value, params));
    }
    // if we set setParseIntegerOnly(isIntegerOnly()) - This may result in
    // the formatter stopping to parse after the first decimal point.
    // that is number of value 222.22 which is legitimate, hence our test would
View Full Code Here

Examples of javax.faces.convert.ConverterException

      throw ce;
    }
    catch (ParseException pe)
    {
      Object[] params = _getPlaceHolderParameters(context, component, value);
      throw new ConverterException(getParseErrorMessage(context, component,
                                                        pattern, params),
           pe);
    }
  }
View Full Code Here

Examples of javax.faces.convert.ConverterException

    // parsing, allowing:
    // 01/13/99  --> 13-Jan-99
    // 03/Oct/99 --> 03-Oct-99
    // 03.Oct.99 --> 03-Oct-99

    ConverterException ce;
    try
    {
      return _parse(context, component, value, pattern);
    }
    catch (ConverterException convException)
View Full Code Here

Examples of javax.faces.convert.ConverterException

  protected final DateFormat getDateFormat(
    FacesContext context,
    String pattern
    ) throws ConverterException
  {
    ConverterException exception = null;
    try
    {
      DateFormat format = _getDateFormat(context, pattern);
      return format;
    }
    catch (ConverterException ce)
    {
      exception = ce;
    }
    catch (Exception e)
    {
      exception = new ConverterException(e);
    }
    throw exception;
  }
View Full Code Here

Examples of javax.faces.convert.ConverterException

    {
      return _parseString(context, value);
    }
    catch (ParseException pe)
    {
      throw new ConverterException(
                         _getConvertMessage(context, component, value,
                                            getPatterns()));
    }
  }
View Full Code Here

Examples of javax.faces.convert.ConverterException

      Object label = _getLabel(component);
      FacesMessage message = MessageFactory.getMessage(context,
                                          messageId,
                                          new Object[]{label, value, param},
                                          label);
      return new ConverterException(message);
   }
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.