voyent
Is it possible to access a dynamic resource via a menu item?  XML
Forum Index -> General Help
Author Message
MichaelBreu

Joined: 17/Aug/2011 10:08:42
Messages: 19
Offline


Hello,

I have a help menu with a reference to a list of documents. Some are static (easy), however, some are loaded dynamically from the database.

I can access these documents via a dynamic resource. However: Is there a way to integrate them into a menuItem?

Thank you

Michael
artzambrano

Joined: 21/Mar/2007 00:00:00
Messages: 177
Offline


Hi Michael,

This can be accomplished by simply binding the 'url' property of the menu item to a bean and modifying the getUrl() method to resolve the URL of your dynamic resource and return it. Most likely, this would be done via Resource.getRequestPath() or Resource.getURL().

Art

Art Zambrano
ICEsoft Technologies Inc.
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team