ICEfaces
  1. ICEfaces
  2. ICE-3445

menuItems has bug with action and actionListener

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.7.1
    • Fix Version/s: 2.0.1
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Unknown
    • Workaround Exists:
      Yes
    • Workaround Description:
      Always use explicit ids with the MenuItem components you create for your ice:menuItems. And make them in your constructor, and just return them in the List getter method.

      Description

      If you specify an action or actionListener on ice:menuItems, it throws an exception from not finding an enclosing form.

        Issue Links

          Activity

          Hide
          Jens Hartwig added a comment -

          I found an this old issue

          So the solution is to build the menuItem in the constructor and not in the getter.

          Show
          Jens Hartwig added a comment - I found an this old issue So the solution is to build the menuItem in the constructor and not in the getter.
          Hide
          Mark Collette added a comment -

          Use the work-around, which is the proper way of making use of menuItems.

          Show
          Mark Collette added a comment - Use the work-around, which is the proper way of making use of menuItems.

            People

            • Assignee:
              Unassigned
              Reporter:
              Mark Collette
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: