On Mon, Mar 16, 2009 at 11:17 AM, Lucas Silva <[email protected]> wrote: > Hi, I was reading web site documentation and didn't anything I need. Is > there a way to ignore a component that is not available ?
Short answer. No. Long answer: Using a little of imagination and Tapestry IoC distributed configuration (http://tapestry.apache.org/tapestry5/tapestry-ioc/configuration.html), you can do what you want. Outline of a solution. 1) Define a MenuContents service and a MenuItem class or interface. The service would receive an OrderedCollection<MenuItem> as its configuration. 2) Make each of you JARs have a Tapestry-IoC module that contributes MenuItem to the MenuContents service. 3) The component or page that builds the menu uses MenuConstants to get the menu contents. -- Thiago --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
