I'm really glad that I was wrong. Thanks @aragon, I'll test it asap.
Best regards.
Usage of submenu / menuitem in main menu
Hi,
thanks for patch! I've got it working, but not so simple. Maybe I was doing something wrong.
At first I just added olympos-customMenu-1.0.jar to my lib next to olympos-theme-1.1.2.jar. When running app I was getting:
java.lang.ClassCastException: org.primefaces.olympos.component.menu.OlymposMenu cannot be cast to org.primefaces.olympos.component.menu2.OlymposMenu
So I have to remove olympos-theme-1.1.2.jar but than I was missing some resources like theme.css, etc.
Later I copied resources out of olympos-theme-1.1.2.jar and leave olympos-customMenu-1.0.jar in libs, that was the winning combination for me at this moment.
Best, DD
thanks for patch! I've got it working, but not so simple. Maybe I was doing something wrong.
At first I just added olympos-customMenu-1.0.jar to my lib next to olympos-theme-1.1.2.jar. When running app I was getting:
java.lang.ClassCastException: org.primefaces.olympos.component.menu.OlymposMenu cannot be cast to org.primefaces.olympos.component.menu2.OlymposMenu
So I have to remove olympos-theme-1.1.2.jar but than I was missing some resources like theme.css, etc.
Later I copied resources out of olympos-theme-1.1.2.jar and leave olympos-customMenu-1.0.jar in libs, that was the winning combination for me at this moment.
Best, DD
Hi,
well I have found a problem possibly a bug. I will try to write it down clearly.
My menu definition is like this:
General problem is:
When I click on some menuitem, all the submenu items become none expandable.
Test example:
I can expand all submenu items as long as I don't click on some menuitem. From that point on all subitem cannot be expanded anymore.
Best
well I have found a problem possibly a bug. I will try to write it down clearly.
My menu definition is like this:
Code: Select all
<po:tabmenu widgetVar="OlymposMenu">
<po:menu id="menu1" title="Olympos Main Menu" icon="icon-speedometer33">
<p:submenu id="om_dashboards" label="DASHBOARD">
<p:menuitem id="om_db_landing" value="Your Promotion Page" icon="icon-planet23" url="/views/empty-page.xhtml"/>
</p:submenu>
<p:submenu id="om_menuoptcolor" label="MENU AND COLOR OPTIONS">
<p:menuitem id="om_def" value="Default Menu Option" icon="icon-list3" url="/views/empty-page.xhtml"/>
<p:submenu id="om_colors" label="Color Options" icon="icon-blood10">
<p:menuitem id="om_bg_blue" value="Blue Color" icon="icon-chemistry10" url="/views/empty-page.xhtml"/>
<p:menuitem id="om_bg_navy" value="Navy Color" icon="icon-chemistry10" url="/404.xhtml"/>
</p:submenu>
<p:submenu id="om_colors2" label="Color Options 2" icon="icon-blood10">
<p:menuitem id="om_bg_blue2" value="Blue Color" icon="icon-chemistry10" url="/404.xhtml"/>
<p:menuitem id="om_bg_navy2" value="Navy Color" icon="icon-chemistry10" url="/views/empty-page.xhtml"/>
</p:submenu>
</p:submenu>
<p:submenu id="om_theme" label="OLYMPOS THEME">
<p:menuitem id="om_sample" value="Sample Page" icon="icon-document126" url="/views/empty-page.xhtml" />
</p:submenu>
</po:menu>
</po:tabmenu>
When I click on some menuitem, all the submenu items become none expandable.
Test example:
I can expand all submenu items as long as I don't click on some menuitem. From that point on all subitem cannot be expanded anymore.
Best
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Thanks for the sample. I'll check and get back to you.
Github Profile: https://github.com/mertsincan
One another thing to check.
If you have many menu items with same link but different parameters, highlighting does not work correctly.
Example:
MenuItem1: http://some.domain.com/context/index.xhtml?template=1
MenuItem2: http://some.domain.com/context/index.xhtml?template=2
MenuItem3: http://some.domain.com/context/index.xhtml?template=3
No matter which menu item is clicked, first one is always highlighted.
If you have many menu items with same link but different parameters, highlighting does not work correctly.
Example:
MenuItem1: http://some.domain.com/context/index.xhtml?template=1
MenuItem2: http://some.domain.com/context/index.xhtml?template=2
MenuItem3: http://some.domain.com/context/index.xhtml?template=3
No matter which menu item is clicked, first one is always highlighted.
-
- Posts: 5
- Joined: 17 Mar 2016, 14:06
Does anyone know how to solve?
I'm using version 1.1.2.
java.lang.ClassCastException: org.primefaces.olympos.component.menu.OlymposMenu cannot be cast to org.primefaces.olympos.component.menu2.OlymposMenu
I'm using version 1.1.2.
java.lang.ClassCastException: org.primefaces.olympos.component.menu.OlymposMenu cannot be cast to org.primefaces.olympos.component.menu2.OlymposMenu
-
- Posts: 2
- Joined: 18 Aug 2016, 00:37
Hi,
I have the class cast issue, is there a way to resolve this?
Will the po:tabMenu component be rolled into olympus jar in the future?
Thanks
I have the class cast issue, is there a way to resolve this?
Will the po:tabMenu component be rolled into olympus jar in the future?
Thanks
This is a major problem... I need the sub menu as I ahve forms in there. same issue with active tab not working, it is just stuck on the default, Is this going to get fixed? if so ... When?? bought the theme, worked great with the first version, upgraded to the latest and now stuck
-
- Posts: 23
- Joined: 15 Dec 2009, 13:28
- Location: Brazil
- Contact:
+1 to add the feature to Olympus
Walter Mourão
I have upgraded to 0.3 and I am still seeing the menu problem, where no submenus will load, just stuck on the default dashboard, I found a way to make it work, but it is not at all ideal, as it involves some hacking and bad practices
I am using this in an angular 2 app
I am using this in an angular 2 app
-
- Information
-
Who is online
Users browsing this forum: No registered users and 3 guests