ICEfaces
  1. ICEfaces
  2. ICE-1904

menuItem: value binding for stylesheets only works on submenus

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.6.1
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      any

      Description

      Using a value binding for a menuItem's styleClass attribute causes the following behaviour:

      - the top menu ignores the style changes of it's bound value
      - the submenu gets rendered in the desired fashion

      So, the value binding only works for sub menuItems, not for top menuItems

        Activity

        Hide
        Michael Thiem added a comment -

        example war file

        Show
        Michael Thiem added a comment - example war file
        Hide
        Michael Thiem added a comment -

        example source code

        Show
        Michael Thiem added a comment - example source code
        Hide
        Sheng Gu added a comment -

        Is it possible to fix it in 1.6.1 release? I really appreciate it.

        Show
        Sheng Gu added a comment - Is it possible to fix it in 1.6.1 release? I really appreciate it.
        Hide
        Adnan Durrani added a comment -

        Fixed revision: 14765

        One thing I would like to mention here is that, The root level menu Items belongs to the menuBar, so that is why ICEfaces suffix the menuBar's item style class name with the "Item" literal (e.g.).

        JSP:
        <ice:menuBar>
        <ice:menuItem styleClass="File">(it's a root level menu item)
        <ice:menuItem styleClass="Open"/>
        <ice:menuItem styleClass="Close"/>
        </ice:menuItem>
        <ice:menuBar>

        Generated HTML:
        <div>
        <div class="FileItem"> ("Item" has been appended to the styleClass name)
        <div class="Open">
        <div class="Close">
        </div>
        </div>

        Show
        Adnan Durrani added a comment - Fixed revision: 14765 One thing I would like to mention here is that, The root level menu Items belongs to the menuBar, so that is why ICEfaces suffix the menuBar's item style class name with the "Item" literal (e.g.). JSP: <ice:menuBar> <ice:menuItem styleClass="File">(it's a root level menu item) <ice:menuItem styleClass="Open"/> <ice:menuItem styleClass="Close"/> </ice:menuItem> <ice:menuBar> Generated HTML: <div> <div class="FileItem"> ("Item" has been appended to the styleClass name) <div class="Open"> <div class="Close"> </div> </div>

          People

          • Assignee:
            Unassigned
            Reporter:
            Michael Thiem
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: