You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Mathias Walter (JIRA)" <de...@myfaces.apache.org> on 2009/09/11 16:44:58 UTC

[jira] Created: (TRINIDAD-1569) PPR does not work with h:outputText and umlauts

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. &auml;) or the character encoding (e. g. &#228;) 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.


[jira] Commented: (TRINIDAD-1569) PPR does not work with h:outputText and umlauts

Posted by "Christian Haupt (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12831427#action_12831427 ] 

Christian Haupt commented on TRINIDAD-1569:
-------------------------------------------

Bug is available at versions 1.2.11, 1.2.12 and 1.2.13.
PPR Response (XML) is invalid: "entity not defined". (e. g. &auml;)
Bug also affects h:outputFormat. Problem: There is no equivalent for h:outputFormat at Trinidad.

> 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 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. &auml;) or the character encoding (e. g. &#228;) are used.
> But it works, if form data contains umlauts.
> 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: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="Actions">
> 					<tr:panelButtonBar>
> 						<tr:commandLink action="#{consentTypes.edit}" text="Edit" partialSubmit="true" rendered="#{!consentTypes.editMode and consentTypes.visibleOnly}" immediate="true" />
> 						<tr:commandLink action="#{consentTypes.save}" text="Save" partialSubmit="true" rendered="#{!consentTypes.visibleOnly}" />
> 						<tr:commandLink action="#{consentTypes.cancel}" text="Cancel" 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.


[jira] Commented: (TRINIDAD-1569) PPR does not work with h:outputText and umlauts

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12831436#action_12831436 ] 

Matthias Weßendorf commented on TRINIDAD-1569:
----------------------------------------------

ok, will take a look.

My question was: is the used JSF Runtime the RI/Mojarra or MyFaces. 
And... is the bug present w/ both ?

-Matthias

> 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 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. &auml;) or the character encoding (e. g. &#228;) are used.
> But it works, if form data contains umlauts.
> 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: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="Actions">
> 					<tr:panelButtonBar>
> 						<tr:commandLink action="#{consentTypes.edit}" text="Edit" partialSubmit="true" rendered="#{!consentTypes.editMode and consentTypes.visibleOnly}" immediate="true" />
> 						<tr:commandLink action="#{consentTypes.save}" text="Save" partialSubmit="true" rendered="#{!consentTypes.visibleOnly}" />
> 						<tr:commandLink action="#{consentTypes.cancel}" text="Cancel" 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.


[jira] Commented: (TRINIDAD-1569) PPR does not work with h:outputText and umlauts

Posted by "Mathias Walter (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12831448#action_12831448 ] 

Mathias Walter commented on TRINIDAD-1569:
------------------------------------------

The used JSF Runtime is Mojarra (see environment). I didn't try it with MyFaces. The last time I tried MyFaces (over a year ago), I got some strange behaviour (not related to this bug).

> 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 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. &auml;) or the character encoding (e. g. &#228;) are used.
> But it works, if form data contains umlauts.
> 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: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="Actions">
> 					<tr:panelButtonBar>
> 						<tr:commandLink action="#{consentTypes.edit}" text="Edit" partialSubmit="true" rendered="#{!consentTypes.editMode and consentTypes.visibleOnly}" immediate="true" />
> 						<tr:commandLink action="#{consentTypes.save}" text="Save" partialSubmit="true" rendered="#{!consentTypes.visibleOnly}" />
> 						<tr:commandLink action="#{consentTypes.cancel}" text="Cancel" 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.


[jira] Commented: (TRINIDAD-1569) PPR does not work with h:outputText and umlauts

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12801218#action_12801218 ] 

Matthias Weßendorf commented on TRINIDAD-1569:
----------------------------------------------

does this happen with MyFaces too ?

> 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 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. &auml;) or the character encoding (e. g. &#228;) are used.
> But it works, if form data contains umlauts.
> 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: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="Actions">
> 					<tr:panelButtonBar>
> 						<tr:commandLink action="#{consentTypes.edit}" text="Edit" partialSubmit="true" rendered="#{!consentTypes.editMode and consentTypes.visibleOnly}" immediate="true" />
> 						<tr:commandLink action="#{consentTypes.save}" text="Save" partialSubmit="true" rendered="#{!consentTypes.visibleOnly}" />
> 						<tr:commandLink action="#{consentTypes.cancel}" text="Cancel" 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.