PrimeFaces未完全渲染我的组件
PrimeFaces未渲染。我已经正确配置了一切(希望如此)PrimeFaces未完全渲染我的组件,primefaces,jsf-2,jsf-2.2,Primefaces,Jsf 2,Jsf 2.2,PrimeFaces未渲染。我已经正确配置了一切(希望如此) 欢迎页面 公共类基本视图{ 私有字符串文本; 公共字符串getText(){ 返回文本; } 公共void setText(字符串文本){ this.text=文本; } } 我已经包括了所有的注释和库 你把头部和身体的标签弄乱了。你还需要把你的身体的形式 <!DOCTYPE html> <h:html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="htt
欢迎页面
公共类基本视图{
私有字符串文本;
公共字符串getText(){
返回文本;
}
公共void setText(字符串文本){
this.text=文本;
}
}
我已经包括了所有的注释和库
你把头部和身体的标签弄乱了。你还需要把你的身体的形式
<!DOCTYPE html>
<h:html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:mp="http://primefaces.org/ui/material">
<h:head>
<title>Welcome Page</title>
</h:head>
<h:body>
<h:form>
<h:panelGrid columns="4" cellpadding="5">
<h:outputLabel for="name" value="Name:" style="font-weight:bold" />
<p:inputText id="name" value="#{basicView.text}" />
<p:commandButton value="Submit" update="display"
icon="ui-icon-check" />
<h:outputText id="display" value="#{basicView.text}" />
</h:panelGrid>
</h:form>
</h:body>
</h:html>
欢迎页面
我总是想知道创建这种xhtml时使用了什么教程。我们应该向谷歌提交一份“删除”文件,这样就不会有人碰到这个问题