if (((pattern != null) && pattern.length() != 0) || "currency".equals(type)) { configureCurrency(formatter);
if (((pattern != null) && pattern.length() != 0) || "currency".equals(type)) { configureCurrency(formatter);
if (((pattern != null) && pattern.length() != 0) || "currency".equals(type)) { configureCurrency(formatter);
if (((pattern != null) && pattern.length() != 0) || "currency".equals(type)) { configureCurrency(formatter);
if (((pattern != null) && pattern.length() != 0) || "currency".equals(type)) { configureCurrency(formatter);
if (((pattern != null) && pattern.length() != 0) || "currency".equals(type)) { configureCurrency(formatter);
if (((pattern != null) && pattern.length() != 0) || "currency".equals(type)) { configureCurrency(formatter);
if (((pattern != null) && pattern.length() != 0) || "currency".equals(type)) { configureCurrency(formatter);
if (((pattern != null) && pattern.length() != 0) || "currency".equals(type)) { configureCurrency(formatter);
if (((pattern != null) && pattern.length() != 0) || "currency".equals(type)) { configureCurrency(formatter);
if (((pattern != null) && pattern.length() != 0) || "currency".equals(type)) { configureCurrency(parser);
if (((pattern != null) && pattern.length() != 0) || "currency".equals(type)) { configureCurrency(parser);
if (((pattern != null) && pattern.length() != 0) || "currency".equals(type)) { configureCurrency(parser);
if (((pattern != null) && pattern.length() != 0) || "currency".equals(type)) { configureCurrency(parser);
if (((pattern != null) && pattern.length() != 0) || "currency".equals(type)) { configureCurrency(parser);
if (((pattern != null) && pattern.length() != 0) || "currency".equals(type)) { configureCurrency(parser);
if (((pattern != null) && pattern.length() != 0) || "currency".equals(type)) { configureCurrency(parser);
if (((pattern != null) && pattern.length() != 0) || "currency".equals(type)) { configureCurrency(parser);
if (((pattern != null) && pattern.length() != 0) || "currency".equals(type)) { configureCurrency(parser);
public String getAsString(FacesContext context, UIComponent component, Object value) throws ConverterException { AssertionUtil.assertNotNull("FacesContext", context); AssertionUtil.assertNotNull("UIComponent", component); if (value == null) { return ""; } if (value instanceof String) { return (String) value; } Locale locale = getLocale(context); String pattern = getPattern(); NumberFormat formatter = getNumberFormat(locale); if (pattern == null) { configureFormatter(formatter); if (TYPE_CURRENCY.equals(type)) { configureCurrency(formatter); } } try { return formatter.format(value); } catch (Exception e) { Object[] args = ConvertUtil.createExceptionMessageArgs(component, value); throw new ConverterException(FacesMessageUtil.getMessage(context, getStringMessageId(), args), e); } }