/** * @since 2.0 * @param url * @return * @throws IOException * @throws FaceletException * @throws FacesException * @throws ELException */ private DefaultFacelet _createViewMetadataFacelet(URL url) throws IOException, FaceletException, FacesException, ELException { if (log.isLoggable(Level.FINE)) { log.fine("Creating Facelet used to create View Metadata for: " + url); } // The alias is used later for informative purposes, so we append // some prefix to identify later where the errors comes from. String alias = "/viewMetadata/" + _removeFirst(url.getFile(), _baseUrl.getFile()); try { FaceletHandler h = _compiler.compileViewMetadata(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()); } }
/** * @since 2.0 * @param url * @return * @throws IOException * @throws FaceletException * @throws FacesException * @throws ELException */ private DefaultFacelet _createViewMetadataFacelet(URL url) throws IOException, FaceletException, FacesException, ELException { if (log.isLoggable(Level.FINE)) { log.fine("Creating Facelet used to create View Metadata for: " + url); } // The alias is used later for informative purposes, so we append // some prefix to identify later where the errors comes from. String alias = "/viewMetadata/" + _removeFirst(url.getFile(), _baseUrl.getFile()); try { FaceletHandler h = _compiler.compileViewMetadata(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()); } }
try FaceletHandler h = _compiler.compileViewMetadata(url, alias); DefaultFacelet f = new DefaultFacelet(this, _compiler.createExpressionFactory(), url, alias, faceletId, h);