Package javax.faces.application

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


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

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

        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

    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

            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

                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

    } 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

      Map<String, String> requestParamMap = externalContext
          .getRequestParameterMap();
      Application application = context.getApplication();
      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 = _oldClientSelection == null ? new ClientSelection()
          : _oldClientSelection;
View Full Code Here

    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

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.