0

我一直在尝试以编程方式将复合组件插入 UIPanel。为此,我尝试使用 BalusC 的includeCompositeComponent 方法

只有我在第一个 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
4

1 回答 1

1

我的问题是我试图插入组件的阶段。它开着postInvokeAction

通过这样做postAddToView,我没有问题。

于 2013-11-04T18:18:13.413 回答