构建视图时,JSF 视图树 (UIViewRoot) 是否包含标记处理程序(JSTL 标记、<ui:include>、<f:xxx>.. 等)信息?

Is JSF view tree (UIViewRoot) contains the tag handler(JSTL tags, <ui:include> , <f:xxx>.. etc) information when the view is built?

当第一次访问JSF页面时,jsf视图组件树(UIViewRoot)将在渲染响应阶段创建并根据配置存储在server/client端。这个创建的UIViewRoot是否包含tag handler信息?

Is this created UIViewRoot contains the tag handler information?

没有。标记处理程序在构建视图时执行,因此不会实际出现在生成的组件树中。你基本上只能在组件树中找到它们的结果。例如。某些组件存在或不存在,或者是否附加了特定的 attributes/listeners/converters/validators。

请注意,视图不一定仅在渲染响应阶段构建。它是在通常在恢复视图阶段构建的回发期间。

另请参阅:

  • JSTL in JSF2 Facelets... makes sense?