我输入了以下代码:
<h:outputStylesheet library="css" name="style.css" target="body" />
Run Code Online (Sandbox Code Playgroud)
问题是它给我一个关于target ="body"的错误说:
The attribute target is not defined in the component outputStylesheet
Run Code Online (Sandbox Code Playgroud)
在html部分,如果html我有以下内容:
<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:p="http://primefaces.org/ui"
xmlns:pe="http://primefaces.org/ui/extensions">
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?
谢谢
我的 java 代码有一些错误问题。
我有以下代码:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:pe="http://primefaces.org/ui/extensions"
xmlns:s="http://www.sensap.eu/jsf"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:dialogs="http://java.sun.com/jsf/composite/components/dialogs"
xmlns:widgets="http://java.sun.com/jsf/composite/components/widgets">
Run Code Online (Sandbox Code Playgroud)
当我编译代码时,它给了我以下错误:
没有找到命名空间http://java.sun.com/jsf/composite/components/dialogs 没有找到命名空间http://java.sun.com/jsf/composite/components/widgets 的库
我试图检查 pom.xml 是否正常,但从我的角度来看,它看起来不错。我不知道接下来要做什么!!!