This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JSF and the fly likes Problem with reading of var from faces-config. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem with reading of var from faces-config." Watch "Problem with reading of var from faces-config." New topic
Author

Problem with reading of var from faces-config.

Rafael Belin
Greenhorn

Joined: Apr 03, 2012
Posts: 4
Hi, can you help me to resolve my problem. Well, I dont know how can I acces the reference "var", which is in faces-config.For example, I have defined the following resource-bundles:




So, Bundle is in this case a class and I can acces it with two vars "label" and "message". Is it possible to get the values of these vars? To check if the class was referenced in the jsf-code by message or label?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17149
    
  27

Welcome to the JavaRanch, "some"!

I can tell you, but... http://www.javaranch.com/name.jsp


An IDE is no substitute for an Intelligent Developer.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17149
    
  27

Thanks for fixing your display name, Rafael!

Unfortunately, you cannot obtain the path that way because the resource-bundle is compiled and the name is looked up and replaced with the actual bundle object itself.

In any case, the path is only the base name, since in a bundle you can have more than one resource file.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with reading of var from faces-config.
 
It's not a secret anymore!