ICEfaces
  1. ICEfaces
  2. ICE-10203

ace:menuItem - Missing span after update of text

    Details

    • Assignee Priority:
      P2
    • Support Case References:
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      A workaround consists of placing the menu inside an h:panelGroup, and inside that same group, adding plan a <span> element with style="display:none;" and rendering the item label inside of it as well. It won't be visible to the user, and since this span will be changing its content at the same time as the menu item label, and because it doesn't have its own client id, it will force the entire panel group (containing the menu) to be completely updated, and this way all the extra nodes and styling are re-applyied by the Wijmo Menu library after the update. One of these <span>'s would have to be added for each menu item label that changes.
      Show
      A workaround consists of placing the menu inside an h:panelGroup, and inside that same group, adding plan a <span> element with style="display:none;" and rendering the item label inside of it as well. It won't be visible to the user, and since this span will be changing its content at the same time as the menu item label, and because it doesn't have its own client id, it will force the entire panel group (containing the menu) to be completely updated, and this way all the extra nodes and styling are re-applyied by the Wijmo Menu library after the update. One of these <span>'s would have to be added for each menu item label that changes.

      Description

      When an ace:menuItem (used in an ace:menuBar for this scenario) value attribute is dynamically updated, the update cases the component to lose a span tag responsible for some styling:

      Before:
      <a...>
      <span class="wijmo-wijmenu-text">
      <span class="ui-icon ui-icon-home wijmo-wijmenu-icon-left"></span>
      <span class="wijmo-wijmenu-text">Home</span>
      </span>
      </a>

      After:
      <a...>
      <span class="ui-icon ui-icon-home wijmo-wijmenu-icon-left"></span>
      <span class="wijmo-wijmenu-text">Home</span>
      </a>

        People

        • Assignee:
          Arturo Zambrano
          Reporter:
          Arran Mccullough
        • Votes:
          0 Vote for this issue
          Watchers:
          3 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: