ICEfaces
  1. ICEfaces
  2. ICE-2411

Component not rendered under condition in renderOnUserRole shouldn't render its children

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.1
    • Fix Version/s: 1.7DR#3, 1.7
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Windows XP SP2,
      Weblogic 9.2,
      FireFox 2.0.0.9

      Description

      When I add renderOnUserRole tag to my ice:menuItem, and it is not rendered (actually border of it is rendered), all ice:menuItem nested within this ice:menuItem are rendered (selecting of border, causes showing of this nested ice:menuItem).
      Probably in other components which allows nesting another components it is brokent too.

      I've investigated it, and here are more detailed info:
      When user don't have roles specified in renderOnUserRole this div is rendered to output:
      <div id="someId" class="iceMnuBarSubMenu" style="display: none;" name="SUBMENU"/>

      But if iceMnuBarSubMenu CSS class contains non 0px border width it is rendered like in attached menu.jpg.

      Probably when in FF I select this border some onmouseover javascript is triggering rendering of submenu containded by this menu.
      (I saw this javascript code using FireBug).

      To fix this bug don't render any component when user don't have roles specified in renderOnUserRole.

      Alsa when I set rendered property to false, and removed renderOnUserRole it behaves the same.

      This behavior is not present in IE.

        Activity

        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Mark Collette [ mark.collette ]
        Ken Fyten made changes -
        Fix Version/s 1.7 [ 10080 ]
        Mark Collette made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 1.7DR#3 [ 10112 ]
        Assignee Mark Collette [ mark.collette ]
        Marcin Dabrowski made changes -
        Field Original Value New Value
        Attachment menu.jpg [ 10742 ]
        Marcin Dabrowski created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Marcin Dabrowski
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: