impl/src/main/java/org/apache/myfaces/view/facelets/impl/DefaultFaceletFactory.java
/**
     * Uses the internal Compiler reference to build a Facelet given the passed URL.
     * 
     * @param url
     *            source
     * @return a Facelet instance
     * @throws IOException
     * @throws FaceletException
     * @throws FacesException
     * @throws ELException
     */
Uses the internal Compiler reference to build a Facelet given the passed URL.


Uses the internal Compiler reference to build a Facelet given the passed URL .
private DefaultFacelet _createFacelet(URL url) throws IOException, FaceletException, FacesException, ELException
    {
        if (log.isLoggable(Level.FINE))
        {
            log.fine("Creating Facelet for: " + url);
        }
        URL baseUrl = getBaseUrl();
        String alias = '/' + _removeFirst(url.getFile(), baseUrl == null ? "" : baseUrl.getFile());
        try
        {
            FaceletHandler h = _compiler.compile(url, alias);
            DefaultFacelet f = new DefaultFacelet(this, _compiler.createExpressionFactory(), url, alias, alias, h,
                viewUniqueIdsCacheEnabled);
            return f;
        }
        catch (FileNotFoundException fnfe)
        {
            throw new FileNotFoundException("Facelet " + alias + " not found at: " + url.toExternalForm());
        }
    }
private DefaultFacelet _createFacelet ( URL url ) throws IOException , FaceletException , FacesException , ELException { if ( log . isLoggable ( Level . FINE ) ) { log . fine ( "Creating Facelet for: " + url ) ; } URL baseUrl = getBaseUrl ( ) ; String alias = '/' + _removeFirst ( url . getFile ( ) , baseUrl == null ? "" : baseUrl . getFile ( ) ) ; try { FaceletHandler h = _compiler . compile ( url , alias ) ; DefaultFacelet f = new DefaultFacelet ( this , _compiler . createExpressionFactory ( ) , url , alias , alias , h , viewUniqueIdsCacheEnabled ) ; return f ; } catch ( FileNotFoundException fnfe ) { throw new FileNotFoundException ( "Facelet " + alias + " not found at: " + url . toExternalForm ( ) ) ; } }
Uses the internal Compiler reference to build a Facelet given the passed URL.
Uses the internal Compiler reference to build a Facelet given the passed URL .