Dynamic ps:menu problem

Locked
guilhermefacanha
Posts: 5
Joined: 04 Apr 2014, 23:25

03 Dec 2015, 14:08

Hello, i'm trying to build a spark ps:menu dynamic with model.

But when I add a Element of DefaultSubMenu the generatade code does not print the ShowOnMobile css class in the <il> that hides the arrow icon.

Anyone knows what can i do or write in my code to make ir work.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

04 Dec 2015, 11:19

Fixed for next Spark release (Issue; https://github.com/primefaces/layouts/issues/54).
For now, you can try with this change;

SparkMenuRenderer.java

Code: Select all

protected void encodeSubmenu(FacesContext context, AbstractMenu menu, Submenu submenu, int marginLevel) throws IOException{
   ...
   //line 226
   boolean rootSubmenu = (submenu.getParent() instanceof SparkMenu) || (marginLevel == -1); 
   // instead of boolean rootSubmenu = (submenu.getParent() instanceof SparkMenu)

   ....
}

Locked

Return to “Spark”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 16 guests