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

        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Adnan Durrani [ adnan.durrani ]
        Adnan Durrani made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Fix Version/s 1.6.1 [ 10070 ]
        Resolution Fixed [ 1 ]
        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>
        Adnan Durrani made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #14765 Wed Aug 29 14:05:57 MDT 2007 adnan.durrani ICE-1904 fixed. (menuItem: value binding for stylesheets only works on submenus)
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/menubar/MenuItem.java
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/component/src/com/icesoft/faces/component/menubar/MenuItem.java
        Ken Fyten made changes -
        Assignee Adnan Durrani [ adnan.durrani ]
        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.
        Michael Thiem made changes -
        Attachment forum-5094-src.zip [ 10521 ]
        Hide
        Michael Thiem added a comment -

        example source code

        Show
        Michael Thiem added a comment - example source code
        Michael Thiem made changes -
        Attachment forum-5094.war [ 10520 ]
        Hide
        Michael Thiem added a comment -

        example war file

        Show
        Michael Thiem added a comment - example war file
        Michael Thiem made changes -
        Field Original Value New Value
        ICEfaces Forum Reference http://www.icefaces.org/JForum/posts/list/5094.page#22985
        Michael Thiem created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved: