/** * @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.1 * @param url * @return * @throws IOException * @throws FaceletException * @throws FacesException * @throws ELException */ private DefaultFacelet _createCompositeComponentMetadataFacelet(URL url) throws IOException, FaceletException, FacesException, ELException { if (log.isLoggable(Level.FINE)) { log.fine("Creating Facelet used to create Composite Component 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 = "/compositeComponentMetadata/" + _removeFirst(url.getFile(), _baseUrl.getFile()); try { FaceletHandler h = _compiler.compileCompositeComponentMetadata(url, alias); DefaultFacelet f = new DefaultFacelet(this, _compiler.createExpressionFactory(), url, alias, h, true); 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()); } }
/** * @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()); } }
/** * 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()); } }
/** * @since 2.0.1 * @param url * @return * @throws IOException * @throws FaceletException * @throws FacesException * @throws ELException */ private DefaultFacelet _createCompositeComponentMetadataFacelet(URL url) throws IOException, FaceletException, FacesException, ELException { if (log.isLoggable(Level.FINE)) { log.fine("Creating Facelet used to create Composite Component 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 = "/compositeComponentMetadata/" + _removeFirst(url.getFile(), _baseUrl.getFile()); try { FaceletHandler h = _compiler.compileCompositeComponentMetadata(url, alias); DefaultFacelet f = new DefaultFacelet(this, _compiler.createExpressionFactory(), url, alias, h, true); return f; } catch (FileNotFoundException fnfe) { throw new FileNotFoundException("Facelet " + alias + " not found at: " + url.toExternalForm()); } }
DefaultFacelet f = new DefaultFacelet(this, _compiler.createExpressionFactory(), url, alias, faceletId, h); return f;
/** * 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()); } }
public Facelet compileComponentFacelet(String taglibURI, String tagName, Map<String,Object> attributes) { FaceletHandler handler = _compiler.compileComponent(taglibURI, tagName, attributes); String alias = "/component/oamf:"+tagName; return new DefaultFacelet(this, _compiler.createExpressionFactory(), getBaseUrl(), alias, alias, handler); }
DefaultFacelet f = new DefaultFacelet(this, _compiler.createExpressionFactory(), url, alias, alias, h, true); return f;