集成primefaces-extensions dynaform时出现以下错误
java.lang.NullPointerException
at org.primefaces.extensions.component.dynaform.DynaFormRenderer.preRenderLabel(DynaFormRenderer.java:280)
at org.primefaces.extensions.component.dynaform.DynaFormRenderer.encodeMarkup(DynaFormRenderer.java:99)
at org.primefaces.extensions.component.dynaform.DynaFormRenderer.encodeEnd(DynaFormRenderer.java:78)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:878)
我的类路径中包含以下库,如此处所述
primefaces-3.3.1.jar
primefaces-extensions-0.5.1.jar
commons-lang.jar
Xhtml 看起来像
<ui:composition template="WEB-INF/templates/base.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:pe="http://primefaces.org/ui/extensions">
<ui:define name="content">
<pe:dynaForm id="dynaForm" >
</pe:dynaForm>
</ui:define>
</ui:composition>
更新:
更新一些代码后出现以下错误:
javax.servlet.ServletException: Cannot find component with identifier "_mainForm_dynaFormGroup" referenced from "j_idt7:dynaForm:j_idt14".
我错过了什么?