[
http://jira.jboss.com/jira/browse/RF-3738?page=comments#action_12417769 ]
Mike Hanafey commented on RF-3738:
----------------------------------
Although the missing body tag appears to be an error, this does not seem to be the root of
the problem.
On Firefox 2 where the application works even with NONE, the "function dpf"
definition is enclosed in "<![[CDATA[". On Firefox 3 the idential application
does not include the CDATA escaping mechanism. It appears that the TIDY filter puts this
in, but NEKO does not, and this then explains why Firefox 3 requires TIDY for this example
to work.
As a guess, maybe the script generation code has conditionals around browser types, and
Firefox 3 is not treated like Firefox 2??
simpleTogglePanel ajax broken if filter is NONE -- body tag is
missing
----------------------------------------------------------------------
Key: RF-3738
URL:
http://jira.jboss.com/jira/browse/RF-3738
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: JDK 1.6, Facelets 1.14, JSF-RI 1.2_08
Reporter: Mike Hanafey
Attachments: neko.txt, none.txt, tidy.txt
When:
<context-param>
<param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
<param-value>NONE</param-value>
</context-param>
the following trivial page generates an AJAX response that does not have a body element
that encloses the actual body content (using 3.2.1.GA):
<?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">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<body>
<a4j:log hotkey="M"/>
<h:form id="theForm">
<rich:simpleTogglePanel id="tog" switchType="ajax"
opened="true" label="Toggle Label"
immediate="true" ajaxSingle="true">
<h:panelGroup rendered="true">
<a4j:commandButton id="addKeywordButton" value="Add"
title="Add a new keyword" reRender="tog"/>
</h:panelGroup>
</rich:simpleTogglePanel>
</h:form>
</body>
</html>
With Firefox 2, the XML parsing still works, but with Firefox 3 there is an XML parsing
error, so pages that actually are supposed to do something on the AJAX response appear to
be dead. NOTE: In this trivial test case even Firefox 3 does not generate the parsing
error, but in the real example this was derived from where the body content is more
complex, then the parsing error happens. But even in the trivial test case, the
<body> tag is missing.
I know the filter issue has come up many times before. It seems like a very good idea if
the RichFaces developers would always run with the NONE setting so that these problems
would be caught early.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira