【发布时间】:2013-10-18 19:38:20
【问题描述】:
我一直在尝试以编程方式将复合组件插入 UIPanel。为此,我尝试使用 BalusC 的 includeCompositeComponent method。
只有我在第一个 application.createComponent 上有 NullPointerException。它指向:
com.sun.faces.application.view.FaceletViewHandlingStrategy.getComponentMetadata(FaceletViewHandlingStrategy.java:237) [jsf-impl-2.1.25.jar:2.1.25]
显然我的 FacesContext 中没有 FaceletFactory。我在调试模式下查看 facesContext.getAttributes() 并没有看到。
我错过了什么吗?
我用:
- JBoss 7.1
- jsf-impl-2.1.25
- RichFaces-4.3.4
【问题讨论】:
标签: jsf-2 richfaces jboss7.x facelets composite-component