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

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #25871 Thu Oct 06 13:26:06 MDT 2011 art.zambrano ICE-7302 synchronized method that generates ids
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/component/StateSavingIdGenerator.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved: