Hi,
I want to use <sec:authorize access> in topbar.xhtml,
but it gets exception like below.
When I delete <sec:authorize> part, it works !!
I was using spark, <ps:menu> and it was working well.
Exception:
java.lang.ClassCastException: com.sun.faces.facelets.compiler.UIInstructions cannot be cast to org.primefaces.model.menu.MenuElement
at org.primefaces.apollo.component.menu.ApolloMenuRenderer.encodeElements(ApolloMenuRenderer.java:51)
at org.primefaces.apollo.component.menu.ApolloMenuRenderer.encodeMarkup(ApolloMenuRenderer.java:41)
at org.primefaces.component.menu.BaseMenuRenderer.encodeEnd(BaseMenuRenderer.java:114)
<pa:menu> and <sec:authorize> problem
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
I'll check and get back to you. Also, which Apollo and PrimeFaces version are you using?
Github Profile: https://github.com/mertsincan
Hi,
The problem was about "<param-name>javax.faces.FACELETS_LIBRARIES</param-name>" definition in web.xml.
It was like this:
<param-value>/WEB-INF/springsecurity.taglib.xml
/WEB-INF/primefaces-apollo.taglib.xml
</param-value>
I have changed it:
<param-value>/WEB-INF/springsecurity.taglib.xml;/WEB-INF/primefaces-apollo.taglib.xml
</param-value>
Now, it works well.
Thanks for your reply, sorry to bother you (
The problem was about "<param-name>javax.faces.FACELETS_LIBRARIES</param-name>" definition in web.xml.
It was like this:
<param-value>/WEB-INF/springsecurity.taglib.xml
/WEB-INF/primefaces-apollo.taglib.xml
</param-value>
I have changed it:
<param-value>/WEB-INF/springsecurity.taglib.xml;/WEB-INF/primefaces-apollo.taglib.xml
</param-value>
Now, it works well.
Thanks for your reply, sorry to bother you (
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Glad to hear, thanks a lot for the update
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 2 guests