JSF Bootsfaces组件没有显示

Gui*_*ido 5 jsf bootsfaces

今天我正在申请一个学校项目.我们的Bootsfaces没有任何问题,但突然间我似乎无法显示组件(见图).我不知道是什么导致了这种意想不到的行为,因为它之前有效.没有任何内容更改为.xhtml页面.Chrome控制台和Payara控制台中的错误日志均提供0错误.

我正在使用Payara 5.181和Java EE 7.

编辑:

删除Payara服务器中的"生成"文件夹并重新启动PC似乎可以解决此问题,但过了一段时间(无法准确再现原因)页面再次变为空白.

页面的屏幕截图

.xhtml文件

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:b="http://bootsfaces.net/ui"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
        <title>Kies je cartracker</title>
        <h:outputStylesheet name="default.css" library="css" />
    </h:head>
    <h:body>
        <h1>Kies je cartracker:</h1>
        <b:dataTable value="#{tourmanager.allCartrackers}" 
                     var="tracker">
            <b:dataTableColumn>
                <f:facet name="header">
                    <h:outputText value="Vehicle" />
                </f:facet>
                <h:outputText value="#{tracker.vehicle.serieNr}" />
            </b:dataTableColumn>
            <b:dataTableColumn>
                <f:facet name="header">
                    <h:outputText value="Kies cartracker" />
                </f:facet>
                <h:form>
                    <b:commandButton action="#{tourmanager.pickCartracker(tracker)}"
                                   value="Pick car" >
                    </b:commandButton>
                </h:form>
            </b:dataTableColumn>
        </b:dataTable>
    </h:body>
</html>
Run Code Online (Sandbox Code Playgroud)

的pom.xml

<dependency>
    <groupId>net.bootsfaces</groupId>
    <artifactId>bootsfaces</artifactId>
    <version>1.2.0</version>
    <scope>compile</scope>
</dependency>
Run Code Online (Sandbox Code Playgroud)

web.xml中

<servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
Run Code Online (Sandbox Code Playgroud)

小智 1

奇怪的是,在我的例子中,我遇到了类似的问题,事实证明,如此多的修改和测试证明我的 pom.xml 中的这种依赖关系生成了 bootsfaces 组件未呈现。我的解决方案是消除这种依赖性。

org.glassfishjavax.faces2.2.7