Package com.liferay.faces.demos.service

Examples of com.liferay.faces.demos.service.CustomerService


    if (customer == null) {
      FacesContext facesContext = FacesContext.getCurrentInstance();
      String customerId = facesContext.getExternalContext().getRequestParameterMap().get(PARAM_NAME_CUSTOMER_ID);
      String elExpression = "customerService";
      CustomerService customerService = (CustomerService) facesContext.getApplication().getELResolver().getValue(
          facesContext.getELContext(), null, elExpression);

      try {
        customer = customerService.getCustomer(Long.parseLong(customerId));
      }
      catch (NumberFormatException e) {
        logger.error(e);
      }
    }
View Full Code Here

TOP

Related Classes of com.liferay.faces.demos.service.CustomerService

Copyright © 2018 www.massapicom. 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.