Hi,

I'm using tapestry 5.2.5 and trying to override the a service to get
database based localization. I've searched in the forum and the solutions
present here don't work.

What service should I override? ComponentMessagesSource.class or
Messages.class?

I've tried to do as in the manual:

  @Contribute(ServiceOverride.class)
  public static void
setupApplicationServiceOverrides(MappedConfiguration<Class,Object>
configuration)
  {
    configuration.addInstance(ComponentMessagesSource.class,
DatabaseSource.class);
  }

But I get an error saying:

Caused by: java.lang.IllegalArgumentException: Service 'ServiceOverride' is
configured using org.apache.tapestry5.ioc.OrderedConfiguration, not
org.apache.tapestry5.ioc.MappedConfiguration.

Anyone got something like this implemented and working? Is there any other
way to do this?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Database-based-localization-tp4538988p4538988.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to