Question

Is there a way to access properties files in seam app? I'm looking for some kind of resource loader..

Thanks in advance!

Was it helpful?

Solution

There is actually Seam native component - ResourceLoader which can be simply injected with @In and it gives an access to the property files via ResourceBundle.

Example:

import org.jboss.seam.core.ResourceLoader;
... 
@In
private ResourceLoader resourceLoader;
...
resourceLoader.getResource("BUNDLE_NAME");

OTHER TIPS

This post from the official seam forum may help you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top