PPR error with XHTML JSPs
-------------------------
Key: TRINIDAD-912
URL: https://issues.apache.org/jira/browse/TRINIDAD-912
Project: MyFaces Trinidad
Issue Type: Bug
Affects Versions: 1.2.5-core
Environment: Windows XP, Tomcat 6.0.14, JSF 1.2 RI
Reporter: Mathias Walter
I'm using XHTML inside JSPs. If I include the XML processing instruction "<?xml
version="1.0" encoding="iso-8859-1"?>" at the top of the page, partial triggers
won't work.
Firebug displays:
"Invalid PPR response. The response-headers were:\nServer:
Apache-Coyote/1.1\nX-Powered-By: JSF/1.2\nCon..."
and the PPR result is:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?xml version="1.0" ?>
<?Tr-XHR-Response-Type ?>
Conclusion: PPR should not add the XML processing instruction if it's already
present.
How to reproduce?
Create a jsp file with the following content:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<[EMAIL PROTECTED] uri="http://java.sun.com/jsf/core" prefix="f"%>
<[EMAIL PROTECTED] uri="http://java.sun.com/jsf/html" prefix="h"%>
<[EMAIL PROTECTED] uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
<[EMAIL PROTECTED] language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view>
<html xmlns="http://www.w3.org/1999/xhtml">
<head/>
<body>
<tr:form>
<tr:panelGroupLayout partialTriggers="test">
<tr:commandLink id="test" actionListener="#{cm.click}"
text="Click Me!" partialSubmit="true"/>
</tr:panelGroupLayout>
</tr:form>
</body>
</html>
</f:view>
The backing bean method does nothing.
put the following mapping inside web.xml:
<servlet-mapping>
<servlet-name>faces</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
Deploy and open .../test.jsf with FireFox. Click on the link and view the
output in FireBug.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.