使用 jdeveloper 将 FontAwesome 与 xhtml 一起使用时出错
error while using FontAwesome with xhtml using jdeveloper
我正尝试在我的 .xhtml
页面上使用 font-awesome
,但出现如下图所示的错误。
我正在使用 Jdeveloper 12.2.1
我在这里阅读了很多主题但找不到解决方案
有什么帮助吗?
编辑:
当我使用 .html
而不是 .xhtml
文件时,项目运行良好,
所以问题不是因为路径错误而发生的。
我认为还缺少一些配置
当我在 href
开头添加 ../
或添加
时,它起作用了
#{facesContext.externalContext.requestContextPath}
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>login</title>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="icon" type="image/png" href="images/favicon.ico"/>
<link rel="stylesheet" type="text/css" href="../vendor/bootstrap/css/bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" href="../css/font-awesome.css"/>
<link rel="stylesheet" type="text/css" href="../vendor/animate/animate.css"/>
<link rel="stylesheet" type="text/css" href="../vendor/css-hamburgers/hamburgers.min.css"/>
<link rel="stylesheet" type="text/css" href="../vendor/select2/select2.min.css"/>
<link rel="stylesheet" type="text/css" href="../css/util.css"/>
<link rel="stylesheet" type="text/css" href="../css/main.css"/>
</h:head>
我正尝试在我的 .xhtml
页面上使用 font-awesome
,但出现如下图所示的错误。
我正在使用 Jdeveloper 12.2.1
我在这里阅读了很多主题但找不到解决方案 有什么帮助吗?
当我使用 .html
而不是 .xhtml
文件时,项目运行良好,
所以问题不是因为路径错误而发生的。
我认为还缺少一些配置
当我在 href
开头添加 ../
或添加
#{facesContext.externalContext.requestContextPath}
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>login</title>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="icon" type="image/png" href="images/favicon.ico"/>
<link rel="stylesheet" type="text/css" href="../vendor/bootstrap/css/bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" href="../css/font-awesome.css"/>
<link rel="stylesheet" type="text/css" href="../vendor/animate/animate.css"/>
<link rel="stylesheet" type="text/css" href="../vendor/css-hamburgers/hamburgers.min.css"/>
<link rel="stylesheet" type="text/css" href="../vendor/select2/select2.min.css"/>
<link rel="stylesheet" type="text/css" href="../css/util.css"/>
<link rel="stylesheet" type="text/css" href="../css/main.css"/>
</h:head>