gpt4 book ai didi

Java JSF h :outPutText - no tag was defined

转载 作者:行者123 更新时间:2023-12-01 22:36:39 25 4
gpt4 key购买 nike

我正在尝试实现 Java EE 书中的示例,其中使用了 JSF 2.0。我正在使用 JSF 2.2,这是直接来自书中的示例:

xmlns:h="http://java.sun.com/jsf/html">

<h:outPutText value="#{notowanie.dzien}" >
<f:convertDateTime dateStyle="short" type="date" />
</h:outputText>

它不是这样工作的:

HTTP 状态 500 - 解析/historia.xhtml 时出错:错误跟踪[行:25] 元素类型“h:outPutText”必须由匹配的结束标记“”终止。

所以我把它改为:

<h:outPutText value="#{notowanie.dzien}" />
<f:convertDateTime dateStyle="short" type="date" />

HTTP 状态 500 -/historia.xhtml @23,49 标签库支持命名空间:http://java.sun.com/jsf/html ,但没有为名称定义标签:outPutText

我在这里做错了什么?

最佳答案

关于Java JSF h :outPutText - no tag was defined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26775346/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com