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

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


 
  @Autowired
    protected UrlService urlService;
 
  public ContactForm buildContactForm(final RequestData requestData) throws Exception {
    final ContactForm contactUsForm = new ContactForm();
    String languageCode = requestData.getMarketAreaLocalization().getCode();
    if(languageCode.equals("en")) {
      contactUsForm.setCountry("US");
    } else if(languageCode.equals("fr")) {
      contactUsForm.setCountry("FR");
    else if(languageCode.equals("de")) {
      contactUsForm.setCountry("DE");
    else if(languageCode.equals("es")) {
      contactUsForm.setCountry("ES");
    else if(languageCode.equals("it")) {
      contactUsForm.setCountry("IT");
    else if(languageCode.equals("nl")) {
      contactUsForm.setCountry("NL");
    else if(languageCode.equals("pt")) {
      contactUsForm.setCountry("PT");
    }
   
    return contactUsForm;
  }
View Full Code Here

TOP

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

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.