控制jsf.js.jsf的位置/位置?ln = javax.faces

时间:2015-01-13 15:24:34

标签: jsf-2 primefaces

是否可以控制“jsf.js.jsf?ln = javax.faces”行插入头部的位置?我的JSF页面目前呈现如下:

    <!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">
<head>
    <link type="text/css" rel="stylesheet" href="/wfmportal/javax.faces.resource/theme.css.jsf?ln=primefaces-aristo" />
    <script type="text/javascript" src="/wfmportal/javax.faces.resource/jsf.js.jsf?ln=javax.faces"></script>
    <!--[if lt IE 7]>
        <link rel="stylesheet" href="/wfmportal/styles/menuStyleIE6.css" type="text/css" media="all" />
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="/wfmportal/styles/style.css?v=1.0" media="screen" />
    <script type="text/javascript" src="/wfmportal/javascript/jquery-1.5.1.min1.js"></script> 
    <script type="text/javascript" src="/wfmportal/javascript/app-combined-min.js"></script>
</head>
<body>

...但我想首先调用CSS文件,然后是JavaScript。所以,像这样:

<!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">
<head>
    <!-- All CSS -->
    <link type="text/css" rel="stylesheet" href="/wfmportal/javax.faces.resource/theme.css.jsf?ln=primefaces-aristo" />
    <!--[if lt IE 7]>
        <link rel="stylesheet" href="/wfmportal/styles/menuStyleIE6.css" type="text/css" media="all" />
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="/wfmportal/styles/style.css?v=1.0" media="screen" />

    <!-- All JS-->
    <script type="text/javascript" src="/wfmportal/javax.faces.resource/jsf.js.jsf?ln=javax.faces"></script>
    <script type="text/javascript" src="/wfmportal/javascript/jquery-1.5.1.min1.js"></script> 
    <script type="text/javascript" src="/wfmportal/javascript/app-combined-min.js"></script>
</head>
<body>

我的应用程序是使用JSF 2.0.11(Mojarra)和PrimeFaces 3.4.2编写的。

0 个答案:

没有答案