• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

language propertis to xml properties

 
bostian tov
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now i am using plain text language properties, but have some more complex stuff and want to start using xml.

Settings:



Call from jsf:



Example:


subscription=Subscription


So how can i use xml file instead text file and what do i have to change? Thanks
 
Adrian Mitev
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In java 1.6 you can use xml for properties files but the format is quite ugly. Here is an example of this.
 
bostian tov
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can you access xml properties file from JFS(jsp) page? Now i am just refering to #{lng.someValue}
 
Adrian Mitev
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The same way as .properties files.
 
bostian tov
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My code:



So on startup data for locale sl_SI is beeing loaded. So do i need to have this code or should i change it somehow to get this working?

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic