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.
Dynamic ps:menu problem
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Fixed for next Spark release (Issue; https://github.com/primefaces/layouts/issues/54).
For now, you can try with this change;
SparkMenuRenderer.java
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)
....
}
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 16 guests