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

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


    final FollowUsForm followUsForm = new FollowUsForm();
    return followUsForm;
  }
 
  public CreateAccountForm buildCreateAccountForm(final RequestData requestData) throws Exception {
    final CreateAccountForm createAccountForm = new CreateAccountForm();
    String languageCode = requestData.getMarketAreaLocalization().getCode();
    if(languageCode.equals("en")) {
      createAccountForm.setCountryCode("US");
    } else if(languageCode.equals("fr")) {
      createAccountForm.setCountryCode("FR");
    else if(languageCode.equals("de")) {
      createAccountForm.setCountryCode("DE");
    else if(languageCode.equals("es")) {
      createAccountForm.setCountryCode("ES");
    else if(languageCode.equals("it")) {
      createAccountForm.setCountryCode("IT");
    else if(languageCode.equals("nl")) {
      createAccountForm.setCountryCode("NL");
    else if(languageCode.equals("pt")) {
      createAccountForm.setCountryCode("PT");
    }
   
    return createAccountForm;
  }
View Full Code Here

TOP

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

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.