【发布时间】:2013-11-27 10:47:09
【问题描述】:
我输入了以下代码:
<h:outputStylesheet library="css" name="style.css" target="body" />
问题是它在 target="body" 上给我一个错误说:
The attribute target is not defined in the component outputStylesheet
如果 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">
我该如何解决这个问题?
谢谢
【问题讨论】:
-
相信你不需要指定属性target。