Hi,
Is it possible to update the selected menu of the pu:menu in ultima theme directly from a bean method ?
Regards,
Julien
Update selected menu from bean ?
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
Hello @bar2
Yes, you can. You could change your menumodel. Show us your code to help you
Yes, you can. You could change your menumodel. Show us your code to help you
Juan Fernando Gomez M.
jfgomez@conasinf.com
jfgomez@conasinf.com
Hi,
Thank you.
I use the integrated menu of the ultima template version 2.1.1.
So I didn't create any menuModel manually. As written on the doc https://www.primefaces.org/ultima/docs.xhtml, I copy the jar and I simply use the existing menu in the xhtml
Exemple :
Let's say I have a MenuBean, is it possible to add a changeMenu function that can be called by any action on any page using the id of the menuitem (um_forms for example) as a parameter to make this menuitem selected ? Based on your previous answer, I suppose I have to check how MenuModel works first.
Thank you.
I use the integrated menu of the ultima template version 2.1.1.
So I didn't create any menuModel manually. As written on the doc https://www.primefaces.org/ultima/docs.xhtml, I copy the jar and I simply use the existing menu in the xhtml
Exemple :
Code: Select all
<pu:menu widgetVar="me">
<p:menuitem id="um_dashboard" value="Dashboard" icon="" outcome="/dashboard"/>
<p:submenu id="um_components" label="Components" icon="">
<p:menuitem id="um_sample" value="Sample Page" icon="" outcome="/sample" />
<p:menuitem id="um_forms" value="Forms" icon="" outcome="/forms" />
<p:menuitem id="um_data" value="Data" icon="" outcome="/data" />
<p:menuitem id="um_panels" value="Panels" icon="" outcome="/panel" />
<p:menuitem id="um_overlays" value="Overlays" icon="" outcome="/overlay" />
<p:menuitem id="um_menus" value="Menus" icon="" outcome="/menu" />
<p:menuitem id="um_messages" value="Messages" icon="" outcome="/messages" />
<p:menuitem id="um_charts" value="Charts" icon="" outcome="/charts" />
<p:menuitem id="um_file" value="File" icon="" outcome="/file" />
<p:menuitem id="um_misc" value="Misc" icon="" outcome="/misc" />
</p:submenu>
</pu:menu>
-
- Information
-
Who is online
Users browsing this forum: No registered users and 12 guests