小编kei*_*eri的帖子

Netbeans错误"属性目标未在组件outputStylesheet中定义"

我输入了以下代码:

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

我该如何解决这个问题?

谢谢

jsf netbeans facelets

6
推荐指数
1
解决办法
2504
查看次数

Netbeans 错误“找不到命名空间 http://java.sun.com/jsf/composite/components/dialogs 的库”

我的 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 是否正常,但从我的角度来看,它看起来不错。我不知道接下来要做什么!!!

jsf netbeans pom.xml maven

4
推荐指数
1
解决办法
4653
查看次数

标签 统计

jsf ×2

netbeans ×2

facelets ×1

maven ×1

pom.xml ×1