ICEfaces
  1. ICEfaces
  2. ICE-7302

ID's Changing When Dynamically Adding menuitem on Server

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1-Beta
    • Fix Version/s: 2.1-Beta2, 3.0
    • 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.

        Activity

        Hide
        Brad Kroeger added a comment -

        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.

        Show
        Brad Kroeger added a comment - 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.
        Hide
        Arturo Zambrano added a comment -

        This has been fixed by a preliminary generator change related to ICE-7321. The new approach will be improved, but the basic idea seems to fix this particular problem.

        Show
        Arturo Zambrano added a comment - This has been fixed by a preliminary generator change related to ICE-7321 . The new approach will be improved, but the basic idea seems to fix this particular problem.

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Brad Kroeger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: