By default, the seam-gen'd apps use messages_en.properties (at least for me it does and that's most likely because it detects North America from my browser settings) but there are four other language versions in my project as well. I didn't find any references to messages.properties or messages_en.properties in my project.
However, you will see a messages.properties file in the foobar/resources folder in some of the examples (e.g. booking).
Is the config you want to override in the messages.properties file or a different one? The file goes in WEB-INF/classes (see section 14.2.1 of the Seam 2.0.1.GA ref doc).
Here's an excerpt from Seam in Action:
Resource bundles are grouped under a common base name, which is referred to as the bundle name. There are then off-shoots of the bundle name for each locale. Java will work from the most specific locale down to the root bundle name to locate a Java properties file. If the bundle name were messages and the current locale is US English, Java would follow the search order to locate the key: messages_en_US.properties messages_en.properties messages.properties If the locale-specific key cannot be located, the base bundle is always consulted. Seam doesn't do anything special here to reinvent the wheel. Instead, Seam just handles the task of aggregating the bundles and making them available as a built-in Seam component named messages.
Thank you kindly for that reply! That did the trick.Hey, I see you're using Hardy, it's pretty cool isn't it? :) I'm using Hardy on my office computer and Gutsy at home.
I tell you these examples (the ones that come with the Seam download) are worth their digital weight in gold - especially JPA, SeamBay, and Seamspace. I don't think any tutorial could have spelled out how and what to do better than these three project examples.
JPA was great for seeing how to set up on Tomcat and get MySQL working. SeamBay, and Seamspace show how to do conversations.
the examples are definitely extremely helpful, esp. the booking.
from what I've seen of the jBPM examples, they're too simple and do not demonstrate a realistic workflow process with two or more different roles or processors. so far we haven't had a need to integrate jBPM into our Seam apps.
Hardy is cool, i'm surprised that windows hasn't adopted the workspaces feature yet.
what is Gutsy? next version of ubuntu??
The booking example was kind of like a sales pitch for me - it made it look cool but didn't have the details I wanted but did make me wanting to see more. I kind of wish they'd push SeamBay a little more since it shows conversations spanning multiple pages. Actually I think more examples need to show the conversations instead of session since the documentation even says that they discourage sessions anyways.
I'm still mentally processing using conversations at this point and I haven't had a chance to do anything more than glance at the docs on jBPM. It looks cool but I'm still trying to build something real with conversations, Tomcat, and MySQL. It's been a while since I've done some of the other technologies (JSF, Facelets) so I'm still kind of rusty. :)
As for Gutsy, Gutsy is Ubuntu 7.10 and Hardy is 8.04, so you're using the most up-to-date version (at home I'm one version behind). Development with Java and Seam is so easy going with Ubuntu.