Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: EE-2.0.0.GA, 2.0.2, 3.0
-
Fix Version/s: 3.0.1, EE-3.0.0.GA
-
Component/s: ACE-Components
-
Labels:None
-
Environment:ICEfaces 3.0, ICEfaces 2.0.0.GA Chrome 17, FF10, IE9. JSF Mojarra 2.1.2 - 2.1.7. Tomcat 7
Description
Special signs like the german umlauts (ä, ö, ü) or the Euro sign (€) become unreadable when the text area or input filed are used with the ace:fileEntry component. As soon as you hit the upload button, the special signs in the input components are replaced with unreadable signs (FF and IE). In Chrome unreadable signs appear in the text area only after submit. After page refresh however they appear in both components.
Removal of the <ace:fileEntry /> component from the page will fix this issue.
Screen shots and source files are attached to reproduce this behavior.
Removal of the <ace:fileEntry /> component from the page will fix this issue.
Screen shots and source files are attached to reproduce this behavior.
Issue Links
- duplicates
-
ICE-6570 Problem with internationalization when using FileEntry component
-
- Closed
-
To reproduce / debug the issue, I made the following code changes to the showcase ace:fileEntry example.
Added this to: icefaces3/samples/showcase/showcase/src/main/webapp/resources/examples/ace/fileentry/fileentry.xhtml
{fileEntry.testName}<h:panelGrid columns="2">
<ice:outputText value="Name :"/>
<ice:panelGroup>
<ice:inputText id="Name" value="#
"/>
{fileEntry.testComments}<ice:message for="Name"/>
</ice:panelGroup>
<ice:outputText value="Comments :"/>
<ice:panelGroup>
<ice:inputTextarea id="Comments" value="#
" cols="40" rows="3" />
<ice:message for="Comments"/>
</ice:panelGroup>
</h:panelGrid>
And made it so it no longer had required="true" on the fileEntry in that form, so I wouldn't have to actually upload a file to test this.
And this to: icefaces3/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/file/FileEntryBean.java
private String testName = "HELLO £¢≠üå", testComments = "HELLO £¢≠üå";
{ System.out.println("getTestName: " + testName); return testName; }public String getTestName()
public void setTestName(String tn)
{ testName = tn; System.out.println("setTestName: " + testName);}public String getTestComments()
{ System.out.println("getTestComments: " + testComments); return testComments; }public void setTestComments(String tc)
{ testComments = tc; System.out.println("setTestComments: " + testComments); }