提问人:miraloe 提问时间:10/31/2022 更新时间:10/31/2022 访问量:56
/welcomePrimefaces.xhtml @18,39 <p:layout> 标记库支持 namespace: http://primefaces.org/ui,但未为 name: layoutl 定义标记
/welcomePrimefaces.xhtml @18,39 <p:layout> Tag Library supports namespace: http://primefaces.org/ui, but no tag was defined for name: layoutl
问:
我正在编写实体包中的第一个实体类,但我不想删除 te WelcomePrimefaces,因为我想用它来尝试如何使用其中的一些代码。WelcomePrimefaces 运行良好,但在我编写第一个实体类后,WelcomePrimeces 不起作用。 我明白了...... /welcomePrimefaces.xhtml @18,39 <p:layout> 标记库支持 namespace: http://primefaces.org/ui,但未为 name: layout 定义标记
我从一开始就没有更改它给我的代码,所以我想知道这里发生了什么。 这是 18 行的代码。
<p:layout fullPage="true">
<p:layoutUnit position="north" size="100" resizable="true" closable="true" collapsible="true">
Header
</p:layoutUnit>
<p:layoutUnit position="south" size="100" closable="true" collapsible="true">
Footer
</p:layoutUnit>
<p:layoutUnit position="west" size="175" header="Left" collapsible="true">
<p:menu>
<p:submenu label="Resources">
<p:menuitem value="Demo" url="http://www.primefaces.org/showcase-labs/ui/home.jsf" />
<p:menuitem value="Documentation" url="http://www.primefaces.org/documentation.html" />
<p:menuitem value="Forum" url="http://forum.primefaces.org/" />
<p:menuitem value="Themes" url="http://www.primefaces.org/themes.html" />
</p:submenu>
</p:menu>
</p:layoutUnit>
<p:layoutUnit position="center">
Welcome to PrimeFaces
</p:layoutUnit>
</p:layout>
我期望 netbeans 向我显示我正在执行的第一个实体类中的错误,而不是 WelcomePrimefaces 中的错误。
我用 Mysql 对数据库的池连接做得很好,并使用 EclipseLink 进行持久化
我正在使用 netbeans 15
答:
0赞
Melloware
10/31/2022
#1
在 PF 10.0.0 中删除了布局,请参阅:票证:https://github.com/primefaces/primefaces/issues/2168
您可以使用PrimeFaces Extensions中的布局:https://www.primefaces.org/showcase-ext/views/layout.jsf;
评论