Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-534

Changed XML Menu Model so that Custom Node attributes can only be used on itemNodes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-incubating-core
    • 1.0.0-incubating-core
    • None
    • None

    Description

      Clients using the XML Menu Model have requested that the menu model allow custom attributes (user-defined attributes). This was implemented and, in the past, custom attributes were allowed on groupNodes and itemNodes. However, it does not make sense to allow custom attributes on groupNodes, since they simply point to a child node and have no other function. GroupNodes may chain on down through their children until an itemNode is reached. Thus, clicking on a groupNode actually fires an itemNode. The itemNode does the actual navigation. The focusPath returned by the model when a groupNode is clicked actually goes all the way down the chain to the itemNode. This it only makes sense to allow Custom Attributes on itemNodes.

      Attachments

        1. trunk.patch
          8 kB
          Gary Kind

        Activity

          People

            jeanne.waldman@oracle.com Jeanne Waldman
            garykind Gary Kind
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: