Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PrimeFaces未完全渲染我的组件_Primefaces_Jsf 2_Jsf 2.2 - Fatal编程技术网

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

PrimeFaces未渲染。我已经正确配置了一切(希望如此)


欢迎页面
公共类基本视图{
私有字符串文本;
公共字符串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时使用了什么教程。我们应该向谷歌提交一份“删除”文件,这样就不会有人碰到这个问题