Are user icons supported on root submenus in PrimeFaces 6.0 PanelMenu -


i made panelmenu , tried add icon root submenu it's not working.

<p:panelmenu>     <p:submenu label="Üye işlemleri" icon="fa fa-user-plus">         <p:menuitem value="Üye kayıt" icon="fa fa-user-plus"             action="#{redirect.toregister()}" />          <p:menuitem value="Üye düzenle" icon="fa fa-pencil" />     </p:submenu>     <p:submenu label="kullanıcı işlemleri" icon="ui-icon-extlink">         <p:menuitem value="anasayfa" icon="fa fa-home"             action="#{redirect.tomainpage()}" />         <p:menuitem value="Üye kayıt" icon="fa fa-user-plus"             action="#{redirect.toregister()}" />          <p:menuitem value="Üye düzenle" icon="fa fa-pencil" />     </p:submenu> </p:panelmenu> 

enter image description here

do have idea? tried ui-icon (not fontawesome). don't want change default submenu icon. want add next default icon on this page. can see @ example, in navigation > link. can see, link submenu. have 2 submenu inside each other adding icon?

edit ------

my render class extends on "panelmenurenderer" , faces-config.xml is;

<render-kit>     <renderer>         <component-family>org.primefaces.component</component-family>         <renderer-type>org.primefaces.component.panelmenurenderer</renderer-type>         <renderer-class>denemeexample.my</renderer-class>     </renderer> </render-kit> 

when try run error .

an error occurred:  javax/servlet/jsp/jstl/core/config - stack trace  java.lang.noclassdeffounderror: javax/servlet/jsp/jstl/core/config     @ com.sun.faces.application.view.jspviewhandlingstrategy.executepagetobuildview(jspviewhandlingstrategy.java:344)     @ com.sun.faces.application.view.jspviewhandlingstrategy.buildview(jspviewhandlingstrategy.java:153)     @ com.sun.faces.lifecycle.renderresponsephase.execute(renderresponsephase.java:99)     @ com.sun.faces.lifecycle.phase.dophase(phase.java:101)     @ com.sun.faces.lifecycle.lifecycleimpl.render(lifecycleimpl.java:219)     @ javax.faces.webapp.facesservlet.service(facesservlet.java:647)     @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:291)     @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:206)     @ org.apache.tomcat.websocket.server.wsfilter.dofilter(wsfilter.java:52)     @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:239)     @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:206)     @ org.netbeans.modules.web.monitor.server.monitorfilter.dofilter(monitorfilter.java:393)     @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:239)     @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:206)     @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:217)     @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:106)     @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:502)     @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:142)     @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:79)     @ org.apache.catalina.valves.abstractaccesslogvalve.invoke(abstractaccesslogvalve.java:616)     @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:88)     @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:518)     @ org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:1091)     @ org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:673)     @ org.apache.tomcat.util.net.nioendpoint$socketprocessor.dorun(nioendpoint.java:1500)     @ org.apache.tomcat.util.net.nioendpoint$socketprocessor.run(nioendpoint.java:1456)     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142)     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617)     @ org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run(taskthread.java:61)     @ java.lang.thread.run(thread.java:745) 

i tried solve adding jstl-1.2.jar , jsp-api.jar inside web-inf/lib not solved , server starts working unlogical. doesnt work code in xhtml p:outputlabel or h:outputlabel. think tomcat doesnt run. last of use primefaces 6.0 , jsf 2.2 . have idea should ?

does have 2 submenu inside each other adding icon ?

simply yes. stated in primefaces documentation:

first level of submenus rendered accordion panels , descendant submenus rendered tree node.

if @ source code, see user icons in root submenus not taken account in encoderootsubmenu(). on other hand descendant submenus user icons taken account in encodedescendantsubmenu().

one possible solution user icon support root submenus in panelmenus, create custom renderer based on panelmenurenderer , override encoderootsubmenu(). maybe this question helps starting point.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -