
| Key: |
SM-1
|
| Type: |
Improvement
|
| Status: |
Resolved
|
| Resolution: |
Fixed
|
| Priority: |
Minor
|
| Assignee: |
Matt Raible
|
| Reporter: |
Tim Morrow
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
've been using the "action" attribute to specify a Struts action to generate the item's URL. It works great, including adding the current Struts module to the generated link.
However, I wish to include a menu item that links to a Struts action in another module. That is, the menu is rendered in the context of "moduleA", but one of the menu items is for an action in "moduleB".
My first thought was to use the "location" attribute and include the module in the url, but I would like the symmetry of specifying "action" everywhere. Also, I have a custom permissions checker that looks up Struts actions, and needs to know the module for that purpose.
I ultimately settled on patching MenuBase to add a "module" attribute such that when it is specified in combination with page or action the URL is computed with the page or action looked up from that module, instead of the current module.
|
|
Description
|
've been using the "action" attribute to specify a Struts action to generate the item's URL. It works great, including adding the current Struts module to the generated link.
However, I wish to include a menu item that links to a Struts action in another module. That is, the menu is rendered in the context of "moduleA", but one of the menu items is for an action in "moduleB".
My first thought was to use the "location" attribute and include the module in the url, but I would like the symmetry of specifying "action" everywhere. Also, I have a custom permissions checker that looks up Struts actions, and needs to know the module for that purpose.
I ultimately settled on patching MenuBase to add a "module" attribute such that when it is specified in combination with page or action the URL is computed with the page or action looked up from that module, instead of the current module.
|
Show » |
Sort Order:
|