Issue Details (XML | Word | Printable)

Key: SM-14
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Matt Raible
Reporter: Matt Raible
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Struts Menu

Other Resources and dynamic resource

Created: 08/May/06 05:25 PM   Updated: 08/May/06 05:25 PM
Component/s: Menu Core
Affects Version/s: 2.3
Fix Version/s: None


 Description  « Hide
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

Matt Raible added a comment - 08/May/06 05:25 PM
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?