Examples of createConverter()


Examples of javax.faces.application.Application.createConverter()

            return null;
        }

        try {           
            Application application = context.getApplication();
            return (application.createConverter(converterClass));
        } catch (Exception e) {
            log.warn(e.getLocalizedMessage(), e);
      return null;
        }
    }
View Full Code Here

Examples of javax.faces.application.Application.createConverter()

        String id = getSelectionInputName(context, table);

        String value = (String) requestParamMap.get(id);
        if (value != null) {

            Converter converter = application
                    .createConverter(ClientSelection.class);

            ClientSelection _oldClientSelection = (ClientSelection) table
                    .getAttributes().get(CLIENT_SELECTION);
View Full Code Here

Examples of javax.faces.application.Application.createConverter()

    public void writeSelection(FacesContext context, UIExtendedDataTable table)
            throws IOException {

        Application application = context.getApplication();

        Converter converter = application
                .createConverter(ClientSelection.class);

        ClientSelection selection = (ClientSelection) table.getAttributes()
                .get(CLIENT_SELECTION);
        String string = converter.getAsString(context, table, selection);
View Full Code Here

Examples of javax.faces.application.Application.createConverter()

    } else {

      FacesContext context = FacesContext.getCurrentInstance();
      Application application = context.getApplication();
      Converter converter = application
          .createConverter(locale.getClass());
      if (null != converter) {
        return parseLocale(converter.getAsString(context, this, locale));
      } else {
        throw new FacesException(
View Full Code Here

Examples of javax.faces.application.Application.createConverter()

        // if getType returns a type for which we support a default
        // conversion, acquire an appropriate converter instance.
        try {
            Application application = context.getApplication();
            return application.createConverter(converterType);
        } catch (Exception e) {
            return (null);
        }
    }
View Full Code Here

Examples of javax.faces.application.Application.createConverter()

        // if getType returns a type for which we support a default
        // conversion, acquire an appropriate converter instance.
        try {
            Application application = context.getApplication();
            return application.createConverter(converterType);
        } catch (Exception e) {
            return (null);
        }
    }
View Full Code Here

Examples of javax.faces.application.Application.createConverter()

        if (converterClass == null) {
            return null;
        }
        try {           
            Application application = context.getApplication();
            return (application.createConverter(converterClass));
        } catch (Exception e) {
            return (null);
        }
    }
View Full Code Here

Examples of javax.faces.application.Application.createConverter()

        if (converterId == null) {
            return null;
        }
        try {           
            Application application = context.getApplication();
            return (application.createConverter(converterId));
        } catch (Exception e) {
            return (null);
        }
    }
View Full Code Here

Examples of javax.faces.application.Application.createConverter()

   */
  @Override
  protected Converter createConverter() throws JspException
  {
    Application app = FacesContext.getCurrentInstance().getApplication();
    SSNConverter converter = (SSNConverter)app.createConverter(SSNConverter.CONVERTER_ID);
    return converter;
  }
}
View Full Code Here

Examples of javax.faces.application.Application.createConverter()

        FacesContext facesContext = FacesContext.getCurrentInstance();
        Application application = facesContext.getApplication();
        if (UIComponentTag.isValueReference(_converterId))
        {
            ValueBinding vb = facesContext.getApplication().createValueBinding(_converterId);
            return application.createConverter((String)vb.getValue(facesContext));
        }
        else
        {
            return application.createConverter(_converterId);
        }
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.