> This is a java thing... just as you access resource files in java, I > guess through the class path... > > The locale is available through tapestry/hivemind, either through the > engine getPage().getEngine().getClass() or from some tapestry service...
Hmm, well I'm pretty sure that i'll violate demeters law pretty severely if my page passes the locale to a service which then passes it to the object of interest. > I would however reconsider the implementation: > > If the bean is Business Logic and not presentation, whats the point of > localized messaged in it? > If its not avoidable, you can always pass a MessageSource to it on each > method call. well, the reason is that this object is an email message factory that takes care of setting up the hostname, auth info, and sender address of an email. i want these values to be different and easily changeable for testing and production. I suppose that since the values are email address they don't really have to be properties since they won't differ by locale but at the same time I think it would be better than using something like java system properties or something. Plus then I would have to pass them in when starting the server which depending on the hosting environment may not be a good option. What are some other options for making this configurable? -- Dan Adams Software Engineer Interactive Factory --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
