Ultima 1.1 p:tieredMenu issue

Theme Framework
Post Reply
xorgetra
Posts: 2
Joined: 18 May 2016, 22:20

13 Feb 2018, 03:03

Greetings!

Im using Ultima 1.1, JSF 2.2.8 and Tomcat 7 for deployment of my application with Eclipse as IDE.

Im trying to insert p:tieredMenu inside a pu:menu and i get this error

Code: Select all

org.primefaces.component.tieredmenu.TieredMenu cannot be cast to org.primefaces.model.menu.MenuElement

Code: Select all

 <pu:menu widgetVar="me">
                    	
                    	<p:submenu id="manage" label="#{msgs.menu_manage}" icon="&#xe53b;" >
                    		<p:menuitem value="#{msgs.submenu_matriculateCandidate}" url="/pages/inscription/matriculateContent.jsf" />
                            <p:menuitem value="#{msgs.submenu_findCandidate}" url="/pages/searchCandidate/searchCandidate.jsf" />
                            <!-- <p:submenu label="#{msgs.submenu_matriculatedReport}" >
                            	<p:menuitem value="#{msgs.submenu_matriculatedDayReport}"  url="/pages/secretary/student/inscription/reports/CES/matriculateStudentDay.jsf" />
                            	<p:menuitem value="#{msgs.submenu_matriculatedStudentInRange}"  url="/pages/secretary/student/inscription/reports/CES/matriculateStudentDateRage.jsf" />
                            	<p:menuitem value="#{msgs.submenu_matriculatedTodayReport}"  url="/pages/secretary/student/inscription/reports/CES/matriculateStudentUntilToday.jsf" />
                            </p:submenu> -->
                            <p:menuitem value="#{msgs.submenu_foreignVisitorsTime}"  url="/pages/manageCandidate/manageResidenceForeignCandidate.jsf" />
                        </p:submenu>
                    
                    	<p:submenu id="options" label="#{msgs.menu_options}" icon="&#xe53b;" >
                    	
                    	</p:submenu>

						[b][color=#FF0000]<p:tieredMenu>[/color][/b]
							<p:submenu id="reports" label="#{msgs.menu_reports}"
								icon="&#xe8ef;">
								<p:menuitem value="#{msgs.submenu_centerCandidate}"
									url="/pages/reports/aspirantReport.jsf" />
								<p:menuitem value="#{msgs.submenu_centerTutors}"
									url="/pages/reports/tutorsReport.jsf" />
								<p:menuitem value="#{msgs.submenu_centerDoctors}"
									url="/pages/reports/doctorsReport.jsf" />
								<p:menuitem value="#{msgs.submenu_centerForeign}"
									url="/pages/reports/foreignCandidatesReport.jsf" />
								<p:menuitem value="#{msgs.submenu_planificationReport}"
									url="/pages/reports/planificationReport.jsf" />
								<p:menuitem value="#{msgs.submenu_extensionsReport}"
									url="/pages/reports/extensionsReport.jsf" />
								<p:menuitem value="#{msgs.submenu_aspirantYear}"
									url="/pages/reports/aspirantYear.jsf" />
								<p:menuitem value="#{msgs.submenu_aspirantInvGroup}"
									url="/pages/reports/aspirantInvGroupReport.jsf" />
								<p:menuitem value="#{msgs.submenu_aspirantFiveYears}"
									url="/pages/reports/aspirantRegisteredFiveYears.jsf" />
								<p:menuitem value="#{msgs.submenu_doctorsFiveYears}"
									url="/pages/reports/doctorsFiveYearsXP.jsf" />
							</p:submenu>
						[color=#FF0000][b]</p:tieredMenu>[/b][/color]

						<p:submenu id="administration" label="#{msgs.administration_administrate}" icon="&#xe8d3;" >
                    		<p:menuitem value="#{msgs.administration_administrateNewUser}"  url="/pages/administration/addUsers.jsf" />
                    		<p:menuitem value="#{msgs.administration_administrateDeleteUser}"  url="/pages/administration/deleteUsers.jsf" />
                    		<p:menuitem value="#{msgs.administration_administrateModifyUser}"  url="/pages/administration/modifyUsers.jsf" />
                        </p:submenu>
                    
                    	<p:submenu id="help" label="#{msgs.menu_helps}" icon="&#xe8fd;" >
                    		<p:menuitem value="#{msgs.menu_helps}" url="/pages/help/SistemadeSoportedelaEducacionDoc.html" />
                        </p:submenu>
                    
                    
                    	<p:submenu id="themes" label="Themes" icon="&#xE40A;" rendered="true">
                            <p:menuitem id="theme1" value="Indigo - Pink" icon="&#xE3AE;" actionListener="#{guestPreferences.setTheme('indigo')}" ajax="false" />
                            <p:menuitem id="theme2" value="Brown - Green" icon="&#xE3AE;" actionListener="#{guestPreferences.setTheme('brown')}" ajax="false" />
                            <p:menuitem id="theme3" value="Blue - Amber" icon="&#xE3AE;" actionListener="#{guestPreferences.setTheme('blue')}" ajax="false" />
                            <p:menuitem id="theme4" value="Blue Grey - Green" icon="&#xE3AE;" actionListener="#{guestPreferences.setTheme('blue-grey')}" ajax="false" />
                            <p:menuitem id="theme5" value="Dark - Blue" icon="&#xE3AE;" actionListener="#{guestPreferences.setTheme('dark-blue')}" ajax="false" />
                            <p:menuitem id="theme6" value="Dark - Green" icon="&#xE3AE;" actionListener="#{guestPreferences.setTheme('dark-green')}" ajax="false" />
                            <p:menuitem id="theme7" value="Green - Yellow" icon="&#xE3AE;" actionListener="#{guestPreferences.setTheme('green')}" ajax="false" />
                            <p:menuitem id="theme8" value="Purple - Cyan" icon="&#xE3AE;" actionListener="#{guestPreferences.setTheme('purple-cyan')}" ajax="false" />
                            <p:menuitem id="theme9" value="Purple - Amber" icon="&#xE3AE;" actionListener="#{guestPreferences.setTheme('purple-amber')}" ajax="false" />
                            <p:menuitem id="theme10" value="Teal - Lime" icon="&#xE3AE;" actionListener="#{guestPreferences.setTheme('teal')}" ajax="false" />
                            <p:menuitem id="theme11" value="Cyan - Amber" icon="&#xE3AE;" actionListener="#{guestPreferences.setTheme('cyan')}" ajax="false" />
                            <p:menuitem id="theme12" value="Grey - Deep Orange" icon="&#xE3AE;" actionListener="#{guestPreferences.setTheme('grey')}" ajax="false" />
                        </p:submenu>
                    
                    
                    
                        <p:submenu id="um_customization" label="Customization" icon="&#xE8B8;" rendered="false">
                            <p:menuitem id="custom1" value="Compact Size" icon="&#xE061;" actionListener="#{guestPreferences.setCompact(true)}" ajax="false"/>
                            <p:menuitem id="custom2" value="Material Size" icon="&#xE062;" actionListener="#{guestPreferences.setCompact(false)}" ajax="false"/>
                            <p:menuitem id="custom3" value="Static Menu" icon="&#xE5D2;" actionListener="#{guestPreferences.setMenuLayout('static')}" ajax="false"/>
                            <p:menuitem id="custom4" value="Overlay Menu" icon="&#xE879;" actionListener="#{guestPreferences.setMenuLayout('overlay')}" ajax="false"/>
                            <p:menuitem id="custom5" value="Horizontal Menu" icon="&#xE22C;" actionListener="#{guestPreferences.setMenuLayout('horizontal')}" ajax="false"/>
                            <p:menuitem id="custom6" value="Light Menu" icon="&#xE893;" actionListener="#{guestPreferences.setLightMenu}" ajax="false" />
                            <p:menuitem id="custom7" value="Dark Menu" icon="&#xE892;" actionListener="#{guestPreferences.setDarkMenu}" ajax="false"/>
                            <p:menuitem id="custom8" value="Inline Profile" icon="&#xE0BA;" actionListener="#{guestPreferences.setProfileMode('inline')}" ajax="false" />
                            <p:menuitem id="custom9" value="Top Profile" icon="&#xE55A;" actionListener="#{guestPreferences.setProfileMode('overlay')}" ajax="false"/>
                        </p:submenu>
                        
                        <p:submenu label="#{msgs.menu_helps}" icon="help" rendered="false" >
                    		<p:menuitem value="#{msgs.submenu_onlineHelp}"  url="#" target="blank"/>
                            <!-- <p:menuitem value="#{msgs.message_bottomContact}"  url="#" />
                            <p:menuitem value="Acerca de nosotros"  url="#" /> -->
                        </p:submenu>
                        
                    </pu:menu>
Is there any workaraound to achieve my goal?

Many thanks already!

huseyinT
Posts: 7
Joined: 27 Mar 2016, 13:05

13 Feb 2018, 15:37

<pu:menu is special component, this structure does not support.

xorgetra
Posts: 2
Joined: 18 May 2016, 22:20

13 Feb 2018, 15:44

huseyinT wrote:
13 Feb 2018, 15:37
<pu:menu is special component, this structure does not support.
:( , thanks anyway!

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest