private void addAlternateNamedFacesConfig ( Container moduleContainer , ArrayList < String > classList ) { try { WebApp webapp = moduleContainer . adapt ( WebApp . class ) ; //If null, assume there was no web.xml, so no need to look for ContextParams in it. if ( webapp == null ) { return ; } List < ParamValue > params = webapp . getContextParams ( ) ; String configNames = null ; for ( ParamValue param : params ) { if ( param . getName ( ) . equals ( FACES_CONFIG_NAMES ) ) { configNames = param . getValue ( ) ; break ; } } //If we didn't find the param, then bail out if ( configNames == null ) return ; //Treat value as a comma delimited list of file names StringTokenizer st = new StringTokenizer ( configNames , "," ) ; while ( st . hasMoreTokens ( ) ) { addConfigFileBeans ( moduleContainer . getEntry ( st . nextToken ( ) ) , classList ) ; } } catch ( UnableToAdaptException e ) { if ( log . isLoggable ( Level . FINE ) ) { log . logp ( Level . FINE , CLASS_NAME , "addAlternateNamedFacesConfig" , "failed to adapt conatiner to WebApp" , e ) ; } } }
Look at the web . xml for a context - param javax . faces . CONFIG_FILES and treat as a comma delimited list