我正在尝试使用 Primefaces Mobile 建立一个动态 Web 项目。
因此,我使用 tomee 作为应用程序服务器。我还在我的文件夹中添加了 primfaces-4.0.jar 和 primefaces-mobile-0.9.4.jar WEB-INF/lib
。但我无法渲染任何 Primefaces Mobile 组件。当我尝试通过设置 PrimefacesMobile 渲染套件时
<application>
<default-render-kit-id>PRIMEFACES_MOBILE</default-render-kit-id>
</application>
在我的 faces-config.xml 中,我得到一个 NullPointerException。
如何为我的 JSF 应用程序正确设置 PrimeFaces Mobile?