我有一个网页和网页片段项目。在side web-fragment项目中,我使用jsf。我希望通过在web-fragment.xml中设置此值来阻止jsf呈现注释
<context-param>
<param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
<param-value>true</param-value>
</context-param>但是在调试时,我发现WebConfiguration只能看到web.xml侧面的所有<context-param>
我想知道有没有什么方法可以让这个类在<context-param>-Fragment.xml中装入
非常感谢您的提前!
发布于 2016-06-08 18:20:16
我已经检查了GERONIMO版本3.0.1的实现。这是GERONIMO的一个bug。在MergeHelper类中,它错过了ContextParamMergeHandler将web片段中的所有<context-param>合并到web项目的初始化过程。
Here is the way that I fix it
https://stackoverflow.com/questions/37670068
复制相似问题