<pa:menu> and <sec:authorize> problem

Post Reply
ntapan
Posts: 9
Joined: 02 Sep 2015, 16:35

29 Jun 2017, 15:31

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)

User avatar
aragorn
Posts: 2607
Joined: 29 Jun 2013, 12:38

03 Jul 2017, 11:55

I'll check and get back to you. Also, which Apollo and PrimeFaces version are you using?

ntapan
Posts: 9
Joined: 02 Sep 2015, 16:35

07 Jul 2017, 14:23

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 :((

User avatar
aragorn
Posts: 2607
Joined: 29 Jun 2013, 12:38

07 Jul 2017, 15:29

Glad to hear, thanks a lot for the update :)

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest