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 2008/01/21 22:44:35 UTC
[jira] Created: (TRINIDAD-912) PPR error with XHTML JSPs
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" ?>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
<%@page 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.
[jira] Resolved: (TRINIDAD-912) PPR error with XHTML JSPs
Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthias Weßendorf resolved TRINIDAD-912.
-----------------------------------------
Resolution: Duplicate
> 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, Trinidad 1.2.5
> Reporter: Mathias Walter
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> 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" ?>
> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
> <%@page 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.