Menu item id not showing

After updating the application from boards 3.4.2 to primefaces-4.0.jar, p:menuitemit has no field id.

This is the code that I have

 <h:form id="menuform">
 <p:menuitem id="A" value="value1" url="#" />

In section 4.0:

 <a tabIndex="-1" class="ui-menuitem-link ui-corner-all" href="#">
 <span class="ui-menuitem-text">value1</span></a>

In section 3.4.2:

<a class="ui-menuitem-link ui-corner-all" id="menuform:A" href="#">
<span class="ui-menuitem-text">value1</span></a>

In this regard, I get an undefined or null reference script error when getting the identifier of the component of a menu item later.

+4
source share
1 answer

This is a PrimeFaces error. I already discovered issue # 1039 due to this issue with more details. https://github.com/primefaces/primefaces/issues/1039 Configure it if you want.

0
source

Source: https://habr.com/ru/post/1541079/


All Articles