This morning I came in to my office and the first thing I saw: my company site crashed. Because of me I think.
Now I tried for one hour and a half to fix this, but I fou
Just add this to your web.xml:
<context-param>
<param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
<param-value>true</param-value>
</context-param>
It will skip the comments in your JSF while rendering.
As of JSF1025, facelets.SKIP_COMMENTS
has been deprecated.
Just add this to your web.xml
:
<context-param>
<param-name>facelets.SKIP_COMMENTS</param-name>
<param-value>true</param-value>
</context-param>
It will skip the comments in your JSF
while rendering.
Please try setting the following:
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>blitzer</param-value>
</context-param>
A quick google of the error message shows
PanelMenu can't be rendered when it's sub elements contain comments. a html alert dialog will be shown on which written "UI Layout Initialization Error..." and on the server an exception is thrown "java.lang.ClassCastException:com.sun.faces.facelets.compiler.UIInstructions cannot be cast to org.primefaces.model.menu.MenuElement".