@Override public void apply(FaceletContext ctx, UIComponent parent) throws IOException { // extract a prefix from the child content if (null != nextHandler) { String content = this.nextHandler.toString().trim(); if (content.startsWith("<")) { int i; if (-1 != (i = content.indexOf(":"))) { content = content.substring(1, i); CompilationMessageHolder messageHolder = EncodingHandler.getCompilationMessageHolder(ctx); // remove any compilation messages pertaining to this prefix if (null != messageHolder) { messageHolder.removeNamespacePrefixMessages(content); } } } } }
protected FaceletHandler doCompile(CompilationManager mngr, CompilationHandler handler, URL src, String alias) throws IOException { String encoding = getEncoding(); try (InputStream is = new BufferedInputStream(src.openStream(), 1024);) { writeXmlDecl(is, encoding, mngr); SAXParser parser = this.createSAXParser(handler); parser.parse(is, handler); } catch (SAXException e) { throw new FaceletException("Error Parsing " + alias + ": " + e.getMessage(), e.getCause()); } catch (ParserConfigurationException e) { throw new FaceletException("Error Configuring Parser " + alias + ": " + e.getMessage(), e.getCause()); } catch (FaceletException e) { throw e; } FaceletHandler result = new EncodingHandler(mngr.createFaceletHandler(), encoding, mngr.getCompilationMessageHolder()); mngr.setCompilationMessageHolder(null); return result; }
protected FaceletHandler doCompile(CompilationManager mngr, CompilationHandler handler, URL src, String alias) throws IOException { String encoding = getEncoding(); try (InputStream is = new BufferedInputStream(src.openStream(), 1024);) { writeXmlDecl(is, encoding, mngr); SAXParser parser = this.createSAXParser(handler); parser.parse(is, handler); } catch (SAXException e) { throw new FaceletException("Error Parsing " + alias + ": " + e.getMessage(), e.getCause()); } catch (ParserConfigurationException e) { throw new FaceletException("Error Configuring Parser " + alias + ": " + e.getMessage(), e.getCause()); } catch (FaceletException e) { throw e; } FaceletHandler result = new EncodingHandler(mngr.createFaceletHandler(), encoding, mngr.getCompilationMessageHolder()); mngr.setCompilationMessageHolder(null); return result; }
public void apply(FaceletContext ctx, UIComponent parent) throws IOException { // extract a prefix from the child content if (null != nextHandler) { String content = this.nextHandler.toString().trim(); if (content.startsWith("<")) { int i; if (-1 != (i = content.indexOf(":"))) { content = content.substring(1, i); CompilationMessageHolder messageHolder = EncodingHandler.getCompilationMessageHolder(ctx); // remove any compilation messages pertaining to this prefix if (null != messageHolder) { messageHolder.removeNamespacePrefixMessages(content); } } } } }
protected FaceletHandler doCompile(CompilationManager mngr, CompilationHandler handler, URL src, String alias) throws IOException { String encoding = getEncoding(); try (InputStream is = new BufferedInputStream(src.openStream(), 1024);) { writeXmlDecl(is, encoding, mngr); SAXParser parser = this.createSAXParser(handler); parser.parse(is, handler); } catch (SAXException e) { throw new FaceletException("Error Parsing " + alias + ": " + e.getMessage(), e.getCause()); } catch (ParserConfigurationException e) { throw new FaceletException("Error Configuring Parser " + alias + ": " + e.getMessage(), e.getCause()); } catch (FaceletException e) { throw e; } FaceletHandler result = new EncodingHandler(mngr.createFaceletHandler(), encoding, mngr.getCompilationMessageHolder()); mngr.setCompilationMessageHolder(null); return result; }
@Override public void apply(FaceletContext ctx, UIComponent parent) throws IOException { // extract a prefix from the child content if (null != nextHandler) { String content = this.nextHandler.toString().trim(); if (content.startsWith("<")) { int i; if (-1 != (i = content.indexOf(":"))) { content = content.substring(1, i); CompilationMessageHolder messageHolder = EncodingHandler.getCompilationMessageHolder(ctx); // remove any compilation messages pertaining to this prefix if (null != messageHolder) { messageHolder.removeNamespacePrefixMessages(content); } } } } }
FaceletHandler result = new EncodingHandler(mngr.createFaceletHandler(), encoding, mngr.getCompilationMessageHolder()); mngr.setCompilationMessageHolder(null);
@Override public void apply(FaceletContext ctx, UIComponent parent) throws IOException { // extract a prefix from the child content if (null != nextHandler) { String content = this.nextHandler.toString().trim(); if (content.startsWith("<")) { int i; if (-1 != (i = content.indexOf(":"))) { content = content.substring(1, i); CompilationMessageHolder messageHolder = EncodingHandler.getCompilationMessageHolder(ctx); // remove any compilation messages pertaining to this prefix if (null != messageHolder) { messageHolder.removeNamespacePrefixMessages(content); } } } } }