// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
package test.standard;

import java.util.Locale;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;

@ManagedBean
@RequestScoped
public class TestInt {
    // internationalization
    public void english() {
        FacesContext.getCurrentInstance().getViewRoot().setLocale(Locale.US);
    }
    public void danish() {
        FacesContext.getCurrentInstance().getViewRoot().setLocale(new Locale("da", "DK"));
    }
}
