Hi, Thiago thanks for the help. I tried to without a jar because it is my need. So I have into my services many AppModule... but it didn't work. I would work if it is in a JAR, isn't ? My final module contains all classes. Maybe I should use reflection to read all class of a determined package.
Lucas On Mon, Mar 16, 2009 at 10:36 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Mon, Mar 16, 2009 at 11:17 AM, Lucas Silva <lan...@gmail.com> 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: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >