I started with a simple provider and consumer application, using a Data Page builder. The result looks like this:
I hope this helps you in your Web Experience Factory development! Here's my example
- In Eclipse, navigate to the WebContet/WEB-INF/work/source directory. Right click on source, then choose New -> Folder. Name it "resources".
- Eclipse should create this folder, then move you in the Project Explorer view up to the virtual link to that folder under Java Resources, as in this image:
- Enter the values you want to be displayed by default, and save the file.
Here you can see that I added two files, one for Spanish (_es) and one for French (_fr). The builder you are about to create will automatically pick up those files because of the naming convention, and use their values when necessary.
- Create a Localized Resource builder. For the Resource Bundle Name, use the chooser to navigate to the resources directory. Select your default property file, and click OK. Check the box for Create Lookup Table. We'll use that later.
- Create a Text builder. For the text, select a value from the LocaleData variable which WEF created. Then for the lookup table, choose the localedata lookup table also created by WEF. This will dynamically substitute the correct values at runtime.