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

        Brad Kroeger created issue -
        Brad Kroeger made changes -
        Field Original Value New Value
        Attachment Menu.java [ 13605 ]
        Brad Kroeger made changes -
        Assignee Ken Fyten [ ken.fyten ]
        Brad Kroeger made changes -
        Attachment Menu.java [ 13605 ]
        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.
        Brad Kroeger made changes -
        Attachment Menu.java [ 13606 ]
        Ken Fyten made changes -
        Salesforce Case []
        Fix Version/s 2.1 [ 10241 ]
        Assignee Priority P1
        Assignee Ken Fyten [ ken.fyten ] Arturo Zambrano [ artzambrano ]
        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
        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.
        Arturo Zambrano made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 2.1-Beta2 [ 10294 ]
        Ken Fyten made changes -
        Security Private [ 10001 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: