Retrieve a Theme instance for a Theme and for a specified locale.
If no Theme instances can be found for the specified name, the method
uses the name of the default theme instead. If no default theme has been
specified, any available theme name will be used. If none is found,
a ThemeConfigurationException is thrown.
If no Theme instance can be found for the locale, the default locale
from the faces-config.xml file is used. If no default theme
was specified, any theme instance will be used. If no theme instances
are found, a ThemeConfigurationException is thrown.
Parameters: name - The for which this Theme was created Parameters: locale - The locale for which the Theme instance is needed The Theme for the locale |