Examples of createConverter()


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()

 
  private Converter getConverterForType(FacesContext context, Class <?> type) {
   
    if (!Object.class.equals(type) && type != null) {
      Application application = context.getApplication();
      return application.createConverter(type);
    }

    return null;
  }
 
View Full Code Here

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

  }

  private Converter getConverterForType(FacesContext context, Class type) {
    if (!Object.class.equals(type) && type != null) {
      Application application = context.getApplication();
      return application.createConverter(type);
    }

    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()

   
    String id = getSelectionInputName(context, grid);
   
    String value = (String) requestParamMap.get(id);
   
    Converter converter = application.createConverter(ClientSelection.class);
   
    ClientSelection _oldClientSelection =
      (ClientSelection) grid.getAttributes().get(CLIENT_SELECTION);
   
    final ClientSelection oldClientSelection =
View Full Code Here

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

    throws IOException {
   
    Application application = context.getApplication();
   
    Converter converter =
      application.createConverter(ClientSelection.class);
   
    ClientSelection selection = (ClientSelection)grid.getAttributes().get(CLIENT_SELECTION);
    String string =
      converter.getAsString(context, grid, selection);
   
View Full Code Here

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

  }

  private Converter getConverterForType(FacesContext context, Class type) {
    if (!Object.class.equals(type)) {
      Application application = context.getApplication();
      return application.createConverter(type);
    }

    return null;
  }
 
View Full Code Here

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

                if(converter != null) {
                    return getAsDate(converter.getAsString(context, this, date));
                }
               
            Application application = context.getApplication();
            converter = application.createConverter(date.getClass());
            if (null != converter) {
              return getAsDate(converter.getAsString(context,  this, date));
            } else {
              throw new FacesException("Wrong attibute type or there is no converter for custom attibute type");
            }
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
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.