Im using JSF+primefaces, and I have a property file regex.property that contain some string I wanna use from the Java code (server side). I know I can open the file and read it; but I also know that those files are already bundled (since they are declared in faces-config file). Does someone can tell me, how can access this resource? or how to find it?
If I'm not mistaken, when you define a resource bundle in faces-config, you assign a bean name to it.
While its most common use is as an anchor for JSF View resources such as messages and labels, I'm fairly certain that you could also inject this bean as a managed property into a JSF backing bean and do a standard resource lookup on it.
The main advantage of that approach is that since it's done via Inversion of Control, you don't have to hard-code the resource location in your backing bean.
Customer surveys are for companies who didn't pay proper attention to begin with.