Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.1-Beta
-
Component/s: ACE-Components
-
Labels:None
-
Environment:Tomcat 7.0.12
ICEfaces-2.1.0.BETA-10022011-bin
-
Assignee Priority:P1
Description
I have modified the poc so that the first submenu has a menuitem to dymamically add the 'Print' menuitem to the top ace:menubar. When the page is first rendered, we have the following rendered out for the menuitem:
<a onclick="showProcessingMessage('Menu Action');;ice.ace.ab({source:'menuForm:screen1Child2',process:'@all',update:'@all',params:{'ice.customUpdate':'menuForm:screen1Child2'}});" href="#" class="wijmo-wijmenu-link ui-corner-all"><span class="wijmo-wijmenu-text"><span class="wijmo-wijmenu-text">Add Pring Menu Item</span></span></a>
Once the menuitem is selected and the ace:menubar model is changed, the same menuitem renders out like this:
<a onclick="showProcessingMessage('Menu Action');;ice.ace.ab({source:'screen1Child2',process:'@all',update:'@all',params:{'ice.customUpdate':'screen1Child2'}});" href="#" class="wijmo-wijmenu-link ui-corner-all"><span class="wijmo-wijmenu-text"><span class="wijmo-wijmenu-text">Add Pring Menu Item</span></span></a>
The id's have changed, they no longer have the form id prepended. The result is that pressing a menuitem with the new id's after the dynamic update, you do not get the the appropriate response from the server.
<a onclick="showProcessingMessage('Menu Action');;ice.ace.ab({source:'menuForm:screen1Child2',process:'@all',update:'@all',params:{'ice.customUpdate':'menuForm:screen1Child2'}});" href="#" class="wijmo-wijmenu-link ui-corner-all"><span class="wijmo-wijmenu-text"><span class="wijmo-wijmenu-text">Add Pring Menu Item</span></span></a>
Once the menuitem is selected and the ace:menubar model is changed, the same menuitem renders out like this:
<a onclick="showProcessingMessage('Menu Action');;ice.ace.ab({source:'screen1Child2',process:'@all',update:'@all',params:{'ice.customUpdate':'screen1Child2'}});" href="#" class="wijmo-wijmenu-link ui-corner-all"><span class="wijmo-wijmenu-text"><span class="wijmo-wijmenu-text">Add Pring Menu Item</span></span></a>
The id's have changed, they no longer have the form id prepended. The result is that pressing a menuitem with the new id's after the dynamic update, you do not get the the appropriate response from the server.
Attaching version of Menu.java with submenu id's. When id's are added to submenu's the submenu text disappears when the model is changed.