GWT Dynamic Locale

后端 未结 3 1017
清歌不尽
清歌不尽 2021-01-03 11:55

I want to set gwt-locale taking user chosen locale with the help of Spring LocaleContextHolder.

public static final String getCurre         


        
3条回答
  •  醉酒成梦
    2021-01-03 12:20

    The solution inspired by Thomas Broyer,

    X.gwt.xml

    
    
    
        
        
        
        
    
        
        
        
        
    
        
        
    
        
        
         
    
        
        
        
    
        
    
    
    

    And , home.jsp

    
    
    
    
    

    locale being passed from Spring Controller

    {
        //...
        modelMap.put("locale", locale);
        return "home";
    }
    

提交回复
热议问题