Good and bad news from me.
Localisation works for me only with normal resource bundles.
Now i have detected that it do not work with the seam resource bundle named messages.
I do have a form like this (bundle is the bundle loaded with f:loadbundle):
<s:validateAll>
| <h:panelGrid border="1" cellspacing="2" id="User"
columns="3">
| <h:outputLabel value="#{bundle.userlogin}"
for="login" />
| <h:inputText id="login" value="#{myUser.login}"
required="true">
| <f:validateLength minimum="5" maximum="30" />
| </h:inputText>
| <h:message for="login" styleClass="errors" />
|
| <h:outputLabel value="#{bundle.userpassword}" for="password"
/>
| <h:inputText id="password" value="#{myUser.password}" />
| <h:message for="password" styleClass="errors" />
| </h:panelGrid>
| </s:validateAll>
|
Now this happens:
The error message for the login field is taken from my bundle and displayed in the
language selected with the localeselector.
The error message for password is taken from the seam messages bundle and displayed in the
browsers default language. (regardless of the selection with the localeselector:-)
What is going wrong here?
Ciao,
Carsten
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024293#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...