| java.lang.Object com.icesoft.faces.webapp.parser.Parser
Parser | public class Parser (Code) | | This is the JSFX parser. It digests a JSFX file into a tag processing tree,
and then executes the JSP tag processing lifecycle over that tree to produce
the JSF component tree.
A parser is initialized with a list of tags that it processes. This list of
tags comes from a serialized version of a TagToComponentMap, which is passed
in as an application initialization parameter. The parser should be created
and initialized by the ViewHandler implementation for the application. Once
it is initialized, the parser can parse a jsf jsp and initialize the
component tree for the page. The parser relies on the apache Digester, and a
set of rules created in the ComponentRuleSet class.
author: Steve Maryka |
Method Summary | |
public void | executeJspLifecycle(TagWire wire, PageContext pageContext, FacesContext facesContext, Set componentIds) This member mimicks the JSP tag processing lifecyle across the tag
processing tree to produce the JSF component tree. | public void | parse(Reader page, FacesContext context) The main parsing logic. |
executeJspLifecycle | public void executeJspLifecycle(TagWire wire, PageContext pageContext, FacesContext facesContext, Set componentIds) throws JspException(Code) | | This member mimicks the JSP tag processing lifecyle across the tag
processing tree to produce the JSF component tree.
Parameters: wire - The tag's wire Parameters: pageContext - The page context Parameters: facesContext - The faces context Parameters: componentIds - throws: JspException - |
parse | public void parse(Reader page, FacesContext context) throws java.io.IOException, org.xml.sax.SAXException(Code) | | The main parsing logic. Creates a Digester to parse page into a tag
processing tree, and then executes the JSP lifecycle across that tree.
The end result is a JSF component rooted with a UIViewRoot component.
Parameters: page - The Reader for the page. Parameters: context - throws: java.io.IOException - If stream IO fails. throws: org.xml.sax.SAXException - If digester encounters invalid XML. |
|
|