Hi,
before jsf2, to handle the localization resources, I used the MultiViewHandler to calculate to locale of the JSF.
But this MultiViewHandler disappear in 2.2 (apis, shall be more stable...)
on new jsf2.2, we can do:
on faces-config.xml
<view-handler>ViewHandlerLanguage</view-handler>
On Java Code
public class ViewHandlerLanguage extends ViewHandlerWrapper
static Locale localeEn = new Locale("en");
@Override
public Locale calculateLocale(FacesContext context) {
return localeEn;
}
br
quarta-feira, 5 de agosto de 2015
Subscrever:
Comentários (Atom)
Java Obfuscate Properties
Hi there how many times we have fuckin stupid commentaries of , hey the code has a password... bullshit you can always get the password... ...
-
Hi, Pivot4J is a awesome JSF project (I'm in love by JSF). So I decide it to start it looking to it, 1st thing is to build it: 1...
-
Hi, as as continuation part of older post on Pivot4J, here is the path to put it working with a IDE: 1. Java First thing first, make s...