|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
---|---|
AbstractUIHandler | |
Compiler | A Compiler instance may handle compiling multiple sources |
EncodingHandler | |
SAXCompiler | Compiler implementation that uses SAX |
TagLibraryConfig | Handles creating a TagLibrary from a
URL source. |
XMLInstruction |
Facelet compiler package, not for extension.
Compilers
are used in conjunction with a
FaceletFactory
implementation.
TagLibraries
and
TagDecorators
in order to define how the
document will be parsed with the Compiler instance. TagLibraries packaged with Facelets
will be loaded for you automatically and bound to their appropriate namespaces.
Compiler compiler = new SAXCompiler();
compiler.setTrimmingWhitespace(true);
compiler.addTagLibrary(new MyTagLibrary());
String alias = "index.html";
URL url = faces.getExternalContext().getResource(alias);
FaceletHandler handler = compiler.compile(url, alias);
A Compiler instance may be used multiple times and is thread safe for compilation.
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |