有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

为什么我要用Javax。servlet。ServletException?

在我的应用程序中,我可以创建一个应用程序实体,但是当我想查看所有应用程序时,我会遇到以下错误:

 The class 'io.undertow.servlet.spec.ServletContextImpl' does not have the property 'applicant'

我还有其他类似的课程,但它们很好用,我不知道这里出了什么问题

引用了来自。xhtml:

<p:column filterBy="#{application.applicant.name}" sortBy="#{application.applicant.name}">
        <f:facet name="header">Name</f:facet>
        <p:cellEditor>
                <f:facet name="output">
                    <h:outputText value="#{application.applicant.name}" />
                </f:facet>
                <f:facet name="input">
                    <p:selectOneMenu value="#{application.applicant}" style="width:100%">
                        <f:selectItems value="#{applicantController.allApplicants}" var="s" itemLabel="#{s.name}" />
                    </p:selectOneMenu>
                </f:facet>
            </p:cellEditor>

</p:column>

问题从这里开始:

<h:outputText value="#{application.applicant.name}" />

无论我在哪里写“application.something”,问题都会出现

我的最后一个想法是在应用程序中。java,我写了以下注释:

@Entity
@Table(name = "Application")
public class Application {

。。但在其他类中,表名以小写开头


共 (0) 个答案