Reply To: Handling Multilanguage JSF Application with Rewrite

Splash Forums Rewrite Users Handling Multilanguage JSF Application with Rewrite Reply To: Handling Multilanguage JSF Application with Rewrite

#23983

zozan
Participant

Second, I use


<h:form>
    <h:selectOneMenu value="#{localeBean.lang}" onchange="submit()">
        <f:selectItem itemValue="en" itemLabel="English" />                                                                                
        <f:selectItem itemValue="ar" itemLabel="العربیە" />
    </h:selectOneMenu>
</h:form>   

With this code, when I change Language, the language of page changes but lang in the address bar stays the same. For example when I am at myContextPath/en/Home and I change select ar in the selectOneMenu the language of the page changes to arabic but in the address bar I still have myContextPath/en/Home. Why is this so?