Package org.apache.myfaces.view.facelets.compiler
Facelet compiler package, not for extension.
Compilers
are used in conjunction with a
FaceletFactory
implementation.
You may register multiple 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.-
Class Summary Class Description AbstractUIHandler CheckDuplicateIdFaceletUtils Compiler A Compiler instance may handle compiling multiple sourcesCompiler.CompilerResult DefaultFaceletConfigResourceProvider DoctypeInstruction DynamicComponentFacelet EncodingHandler FaceletsCompilerSupport Perform initialization steps for facelets compilerFaceletsCompilerUtils Utility class for facelets (which need access to the compiler package).FaceletsProcessingInstructions RefreshDynamicComponentListener This listener must be attached to PostRestoreStateEvent so when the view is restored, the algorithm refresh the component that was created using facelets, restoring the transient markup.SAXCompiler Compiler implementation that uses SAXTagLibraryConfig Handles creating aTagLibrary
from aURL
source.TagLibraryConfigUnmarshallerImpl XMLInstruction -
Exception Summary Exception Description DuplicateIdException Indicates duplicate id as specified in spec 7.7.3 State Saving Methods.