Menu does not open links pu:menu but works with p:menu

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
informatica.soib
Posts: 11
Joined: 28 Aug 2019, 10:09

25 Mar 2021, 12:14

Environment:
- Jboss 7.2
- Primefaces 8

When I click on the menu items does not open any page

Code: Select all

 <pu:menu id="mnu_custom" widgetVar="mnu_custom" model="#{personaBean.menu}"/>
The menu link I get it has a trailing # at the end

Code: Select all

http://localhost:8080/app/gest/persons.xhtml#
But just buy changing the code but the default primefaces menu It works well

Code: Select all

 <p:menu id="mnu_custom" widgetVar="mnu_custom" model="#{personaBean.menu}"/>

Code to create menu

Code: Select all

                ...
                menuItem.setId(element);

                //menuItem.setUrl(subMenu.getServletPath());
                menuItem.setParam("servletPath", subMenu.getServletPath());

                if (subMenu.getServletPath().contains("principal.xhtml")) {
                    menuItem.setCommand("#{themeSwitcherBean.changeToOld}");
                    menuItem.setUpdate(":contenido");
                    menuItem.setAjax(false);
                } else {
                    menuItem.setCommand("#{themeSwitcherBean.changeToNew}");
                    menuItem.setUpdate(":content");
                    menuItem.setAjax(false);
                }
                ...
                
Any idea what could it be?
Last edited by informatica.soib on 30 Mar 2021, 09:14, edited 2 times in total.

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

26 Mar 2021, 13:14

Hi,
@siris, could you please check this issue?

siris
Posts: 322
Joined: 29 Jul 2019, 13:57

26 Mar 2021, 14:43

Hi,

There is no problem with PrimeFaces 10 version in the new update to be released. If you are going to update, we aim to publish it next week.
If you are not going to update, can you tell me which version of PrimeFaces you are using? But I have to state already you need to update PF version for PrimeFaces core issues if any.

Best Regards,

Post Reply

Return to “Avalon - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests