Package org.hoteia.qalingo.web.mvc.form

Examples of org.hoteia.qalingo.web.mvc.form.RetailerContactForm


        productCommentForm.setProductCode(productMarketing.getCode());
        return productCommentForm;
    }
   
    public RetailerContactForm buildRetailerContactForm(final RequestData requestData, final Retailer retailer) throws Exception {
        final RetailerContactForm retailerContactForm = new RetailerContactForm();
        retailerContactForm.setRetailerCode(retailer.getCode());
       
        String languageCode = requestData.getMarketAreaLocalization().getCode();
        if(languageCode.equals("en")) {
            retailerContactForm.setCountry("US");
        } else if(languageCode.equals("fr")) {
            retailerContactForm.setCountry("FR");
        else if(languageCode.equals("de")) {
            retailerContactForm.setCountry("DE");
        else if(languageCode.equals("es")) {
            retailerContactForm.setCountry("ES");
        else if(languageCode.equals("it")) {
            retailerContactForm.setCountry("IT");
        else if(languageCode.equals("nl")) {
            retailerContactForm.setCountry("NL");
        else if(languageCode.equals("pt")) {
            retailerContactForm.setCountry("PT");
        }
       
        return retailerContactForm;
    }
View Full Code Here


    RetailerViewBean retailerViewBean = frontofficeViewBeanFactory.buildViewBeanRetailer(requestUtil.getRequestData(request), retailer);
    model.addAttribute(ModelConstants.RETAILER_VIEW_BEAN, retailerViewBean);
   
    if(retailerContactForm == null
            || retailerContactForm.equals(new RetailerContactForm())){
      retailerContactForm = formFactory.buildRetailerContactForm(requestData, retailer);
      model.addAttribute("retailerContactForm", retailerContactForm);
    }
   
        overrideDefaultSeoPageTitleAndMainContentTitle(request, modelAndView, FoUrls.RETAILER_CONTACT.getKey());
View Full Code Here

TOP

Related Classes of org.hoteia.qalingo.web.mvc.form.RetailerContactForm

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.