PPR does not work with h:outputText and umlauts
-----------------------------------------------

                 Key: TRINIDAD-1569
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1569
             Project: MyFaces Trinidad
          Issue Type: Bug
    Affects Versions:  1.2.12-core
         Environment: JSF RI Mojarra (1.2_13-b01-FCS), JBoss Seam 2.2.0.GA, 
Facelets 1.1.14, Tomcat 6.0.18
            Reporter: Mathias Walter


PPR of some components does not work, if a h:outputText component with a value 
containing german umlauts is used anywhere at the page. The encoding is UTF-8. 
It does not matter, if the html entities (e. g. ä) or the character 
encoding (e. g. ä) are used.
tr:showDetail is not affected. It works. Also, if form data contains umlauts, 
it works.

test:

<?xml version="1.0" encoding="UTF-8" ?>
<!--DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"-->
<xhtml xmlns="http://www.w3.org/1999/xhtml";
        xmlns:h="http://java.sun.com/jsf/html";
        xmlns:tr="http://myfaces.apache.org/trinidad";>
        <body>
                <h:outputText value="Einverständniserklärungen" />
                <tr:form>
                        <tr:showDetail disclosed="#{true}">
                          <tr:showDetailItem disclosed="true">
                            <h:outputText value="This is inside the show detail 
item." />
                          </tr:showDetailItem>
                        </tr:showDetail>
                        <tr:table value="#{consentTypes.list}" 
binding="#{consentTypes.model}" var="row">
                                <tr:column headerText="Name">
                                        <tr:inputText label="Name" 
value="#{row.name}" readOnly="#{consentTypes.visibleOnly}" 
converter="nullStringConverter" required="true" columns="20" />
                                </tr:column>
                                <tr:column headerText="Aktionen">
                                        <tr:panelButtonBar>
                                                <tr:commandLink 
action="#{consentTypes.edit}" text="Bearbeiten" partialSubmit="true" 
rendered="#{!consentTypes.editMode and consentTypes.visibleOnly}" 
immediate="true" />
                                                <tr:commandLink 
action="#{consentTypes.save}" text="Speichern" partialSubmit="true" 
rendered="#{!consentTypes.visibleOnly}" />
                                                <tr:commandLink 
action="#{consentTypes.cancel}" text="Abbrechen" partialSubmit="true" 
rendered="#{!consentTypes.visibleOnly}" immediate="true">
                                                        
<tr:resetActionListener/>
                                                </tr:commandLink>
                                        </tr:panelButtonBar>
                                </tr:column>
                        </tr:table>
                </tr:form>
        </body>
</xhtml>

Note: The backing bean only changes the visibleOnly-flag for this minimal test 
case.

Workaround:
Use tr:outputText instead of h:outputText or replace the umlauts.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to