ICEfaces
  1. ICEfaces
  2. ICE-3863

MenuItems doesn't work with standardRequestScope=true

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.7.2 SP1, 1.8DR#1
    • Fix Version/s: 2.0.1
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      standardRequestScope=true
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)
    • Workaround Exists:
      Yes
    • Workaround Description:
      Always use explicit ids with the MenuItem components you create for your ice:menuItems. And try to make them in your constructor, and just return them in the List getter method.

      Description

      The ice:menuItems component sets-up the parenting of the List<MenuItem> right before rendering. It assumes that the same List<MenuItem> will be returned from the bean upon decode, with the parenting still setup. But with standardRequestScope="true", it will be a new bean, with a new List<MenuItem>, so the decode will fail. If the MenuItem component did the reparenting on the decode, then it might work.

      BUT, if the MenuItem components in the List<MenuItem> use generated ids, that will change each time the new List<MenuItem> is gotten, then they'll still fail to decode properly, because the click will be going to a stale clientId. So, even when this bug is fixed, special care will have to be taken with ice:menuItems and standardRequestScope="true".

        Issue Links

          Activity

          Mark Collette created issue -
          Mark Collette made changes -
          Field Original Value New Value
          Salesforce Case []
          Affects [Documentation (User Guide, Ref. Guide, etc.)]
          Mark Collette made changes -
          Workaround Description Always use explicit ids with the MenuItem components you create for your ice:menuItems. And try to make them in your constructor, and just return them in the List getter method.
          Workaround Exists [Yes]
          Salesforce Case []
          Mark Collette made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 2.0.1 [ 10255 ]
          Resolution Won't Fix [ 2 ]
          Mark Collette made changes -
          Link This issue is duplicated by ICE-3445 [ ICE-3445 ]
          Mark Collette made changes -
          Link This issue duplicates ICE-2361 [ ICE-2361 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: