Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
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
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?