https://github.com/bennycode/working-with-java-resource-bundles
https://github.com/bennycode/working-with-java-resource-bundles
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bennycode/working-with-java-resource-bundles
- Owner: bennycode
- Created: 2013-10-02T10:38:47.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-10-02T17:28:59.000Z (over 11 years ago)
- Last Synced: 2025-03-22T19:47:30.494Z (3 months ago)
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
working-with-java-resource-bundles
==================================Java
- Create Java Web Application with Maven
- Create "src/main/resources"
- Create a package in the resources dir
- Create "messages.properties" in the resources dir
- Create a "faces-config.xml" in "src/main/webapp/WEB-INF"
- Define "messages" in "faces-config.xml" with a custom "var" (sampleMessages)
- Create a XHTML page (src/main/webapp/index.xhtml)
- Define the "Faces Servlet" in "src/main/webapp/WEB-INF/web.xml" (also add it as a )
- Use your messages in a JSF page:
hello_world ->hello.world ->