[richfaces-issues] [JBoss JIRA] Created: (RF-1928) <script> tag are put into <title> tag if <title> contains <a4j:outputPanel>.

Sergey Halipov (JIRA) jira-events at lists.jboss.org
Wed Jan 16 09:05:19 EST 2008


<script> tag are put into <title> tag if <title> contains <a4j:outputPanel>.
----------------------------------------------------------------------------

                 Key: RF-1928
                 URL: http://jira.jboss.com/jira/browse/RF-1928
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.2.0
         Environment: jsf 1.2_04
facelets 1.1.14
            Reporter: Sergey Halipov


Simple main file:
<!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:c="http://java.sun.com/jstl/core"
	xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
	xmlns:rich="http://richfaces.org/rich" >
<ui:composition template="/templates/common.xhtml">
	<ui:define name="body">
		<h:form id="form2">
			<a4j:commandLink value="TEST" />
		</h:form>
	</ui:define>
</ui:composition>
</html>

/templates/common.xhtml:
<!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="https://ajax4jsf.dev.java.net/ajax">
		<head>
		<title>
			<a4j:outputPanel ajaxRendered="true">
			</a4j:outputPanel>
		</title>
		</head>
<body> 
	<ui:insert name="body" />
</body>
</html>

Generated HTML:
....
<head>
		<title><script type='text/javascript' src='/suggestion/a4j_3_2_0-SNAPSHOTorg.ajax4jsf.javascript.AjaxScript.jsf'></script><span id="j_id2"></span>
		</title>
		</head>
.....

-- 
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

        



More information about the richfaces-issues mailing list