tr:image with nonexistent source causes charset problems
--------------------------------------------------------
Key: TRINIDAD-1334
URL: https://issues.apache.org/jira/browse/TRINIDAD-1334
Project: MyFaces Trinidad
Issue Type: Bug
Affects Versions: 1.0.10-core, 1.0.8-core
Environment: ubuntu linux 8.04, tomcat 5.5, sun-java 1.5.0_16-b02,
iso8859-1 and utf8 charsets involved,
all tested environments (ubuntu,centos,windows) have the problem
Reporter: Caius Gran
Priority: Minor
tr:image seems to cause form value charsets to break if the "source" attribute
points to a non-existent image.
whenever the form gets submitted, input values seem to convert from charset to
another and
the effect will accumulate when submit repeats.
in my case the page looked roughly like the following:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
xmlns:trh="http://myfaces.apache.org/trinidad/html"
xmlns:tr="http://myfaces.apache.org/trinidad"
xmlns:ui="http://java.sun.com/jsf/facelets">
<jsp:directive.page contentType="text/html;charset=utf-8" />
<f:view locale="smth">
<tr:document title="smth">
<tr:form>
<tr:panelPage>
<f:facet name="infoUser">
<tr:panelHorizontalLayout>
<!-- the root of evil:
if this is removed or the image is set to some
existing image,
the problem disappears.
-->
<tr:image source="css/info.gif" />
<tr:panelPopup modal="true" title="smth" height="500"
width="600"
position="centered" text="#{msg.help}"
icon="css/info.gif">
<tr:outputDocument value="smth">
<tr:panelHeader text="smth" />
<f:facet name="separator">
<tr:spacer height="8" />
</f:facet>
</tr:outputDocument>
</tr:panelPopup>
</tr:panelHorizontalLayout>
</f:facet>
...
</tr:panelPage>
</tr:form>
</tr:document>
</f:view>
</jsp:root>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.