/** * 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 */ private DefaultFacelet _createFacelet(URL url) throws IOException, FaceletException, FacesException, ELException { if (log.isLoggable(Level.FINE)) { log.fine("Creating Facelet for: " + url); } String alias = "/" + _removeFirst(url.getFile(), _baseUrl.getFile()); try { FaceletHandler h = _compiler.compile(url, alias); DefaultFacelet f = new DefaultFacelet(this, _compiler.createExpressionFactory(), url, alias, h); 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. * * @param url * source * @return a Facelet instance * @throws IOException * @throws FaceletException * @throws FacesException * @throws ELException */ private DefaultFacelet _createFacelet(URL url) throws IOException, FaceletException, FacesException, ELException { if (log.isLoggable(Level.FINE)) { log.fine("Creating Facelet for: " + url); } String alias = "/" + _removeFirst(url.getFile(), _baseUrl.getFile()); try { FaceletHandler h = _compiler.compile(url, alias); DefaultFacelet f = new DefaultFacelet(this, _compiler.createExpressionFactory(), url, alias, h); 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. * * @param url * source * @return a Facelet instance * @throws IOException * @throws FaceletException * @throws FacesException * @throws ELException */ private DefaultFacelet _createFacelet(URL url) throws IOException, FaceletException, FacesException, ELException { if (log.isLoggable(Level.FINE)) { log.fine("Creating Facelet for: " + url); } String alias = "/" + _removeFirst(url.getFile(), getBaseUrl().getFile()); try { FaceletHandler h = _compiler.compile(url, alias); DefaultFacelet f = new DefaultFacelet(this, _compiler.createExpressionFactory(), url, alias, alias, h); return f; } catch (FileNotFoundException fnfe) { throw new FileNotFoundException("Facelet " + alias + " not found at: " + url.toExternalForm()); } }