Menu IDs not being set - Version 1.1

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
wandyer
Posts: 7
Joined: 15 Dec 2016, 02:09

20 Oct 2017, 16:19

I would just like to point out a problem I faced after updating to version 1.1

I use dynamic menus and I set an ID to each menu and I need these specific IDs because I use them somewhere else.

So the generated list of menus would have the IDs in this format menu_<my_id>

Before updating, my UltimaMenuRenderer.java had a method that was suggested here: viewtopic.php?f=42&t=49620&p=153905&hil ... nd#p153905

On the new update, I copied the new UltimaMenuRenderer.java but my menus did not have their corresponding IDs, it was just incrementing from 0: menu_0 menu_1 menu_2 ...

After some tests, I noticed that the method was missing:

Code: Select all

@Override
    public void encodeEnd(FacesContext context, UIComponent component) throws IOException { // PLEASE ADD THIS METHOD
        AbstractMenu menu = (AbstractMenu) component;

        encodeMarkup(context, menu);
        encodeScript(context, menu);
    }
After adding it back, my menus had their IDs again.

So I just wanted to give a heads up so this method could be added on a new release.

Post Reply

Return to “Ultima - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests