我有一个JSF应用程序,其中一些脚本使用target ="head"属性插入,但在将Primefaces 3.5包含到类路径后,这些脚本将停止渲染.
这是页面代码:
<!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">
<h:head>
</h:head>
<h:body>
<h:outputScript target="head">
function a(){};
</h:outputScript>
</h:body>
</html>
Run Code Online (Sandbox Code Playgroud)
删除目标属性会使脚本正常,但是在正文中,而不是在头部...
有线索吗?感谢和问候.