Hello all,
In addition to my mail below, I have done more "experimentation":
When I Use Mojarra 2.1.13 with the same XHTML file with the encoding set
to UTF-8 then I get the same results as described in that mail.
But now I have set the encoding of the XHTML file to ISO-8859-1 (see
[1]) and I get...
- for 2.1.13: the umlauts in the label of the command button is
scrambled ("äöü") but before and after the submission of the page the
umlauts in the input text field are displayed correctly ("äöü") (see
"2-1-13-ISO-before-and-after.png")
- for 2.1.14: the command button label is scrambled and the umlauts in
the input text field are scrambled as well after submission (see
"2-1-14-ISO-after.png")
As some additional information, this behavior has been tested on OS X
10.8.2 and Windows 7 with Firefox 16.0.2 and Chrome 22.0. 1229.94/96 -
all of them have German as their language.
Regards,
Holger
[1]
<?xml version="1.0" encoding="ISO-8859-1"?>
<html xmlns="
http://www.w3.org/1999/xhtml"
xmlns:h="
http://java.sun.com/jsf/html">
<h:body>
<h:form>
<h:inputText value="#{bean.value}"/>
<h:commandButton action="/pages/temp" value="äöü"/>
</h:form>
</h:body>
</html>
Am 01.11.12 00:34, schrieb Holger Stenzhorn:
> Hello all,
>
> Using Mojarra 2.1.14, I have created the following JSF page (see [1])
> and managed bean (see [2]).
>
> When I open that page then the umlauts ("äöü") on the command button
> are displayed correctly.
> Now I enter those same umlauts in the input text field and click on
> the button (see "before.png").
> The page is redisplayed with the umlauts in the input text field
> scrambled ("äöü") (see "after.png").
>
> Am I forgetting to do a certain setting here or is this a (possibly
> known) bug or issue?
> Thanks in advance for your help!
>
> Regards,
> Holger
>
> [1]
> <?xml version="1.0" encoding="UTF-8"?>
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:h="http://java.sun.com/jsf/html">
> <h:body>
> <h:form>
> <h:inputText value="#{bean.value}"/>
> <h:commandButton action="/pages/temp" value="äöü"/>
> </h:form>
> </h:body>
> </html>
>
> [2]
> package some.example;
>
> import javax.faces.bean.ManagedBean;
> import javax.faces.bean.RequestScoped;
>
> @ManagedBean(name="bean")
> @RequestScoped
> public class Bean {
>
> private String value;
>
> public String getValue() {
> return value;
> }
>
> public void setValue(String value) {
> this.value = value;
> }
> }