Struts Menu
  1. Struts Menu
  2. SM-14

Other Resources and dynamic resource

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: Menu Core
    • Labels:
      None

      Description

      Moved from http://sourceforge.net/tracker/index.php?func=detail&aid=1468182&group_id=48726&atid=453974:

      The only resource for menu definition loading is a
      static file xml. My propose is to allow other resources
      like databases, files properties, with specific datas
      for each user.

      Solution: Separate Repository from XML loading.

      A database loading example:

      1) create new MenuContextListener
      2) In this MenuContextListener, convert data between
      data base and struts menu api objects.
      3) Put these objects in Repository class and put
      Repository class in SessionContext.

      []´s
      Rodrigo di Lorenzo Lopes

        Activity

        Hide
        Matt Raible added a comment -

        Wouldn't it be easier to make MenuRepository an interface and allow it to be plugged in to the Listener or Plugin with a setting?

        Show
        Matt Raible added a comment - Wouldn't it be easier to make MenuRepository an interface and allow it to be plugged in to the Listener or Plugin with a setting?

          People

          • Assignee:
            Matt Raible
            Reporter:
            Matt Raible
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development