public class SubWidgetTagHandler extends javax.faces.view.facelets.TagHandler
Iterates over a widget subwidgets and apply next handlers as many times as needed.
Only works when used inside a tag using the WidgetTagHandler
.
Modifier and Type | Field and Description |
---|---|
protected javax.faces.view.facelets.TagConfig |
config |
protected javax.faces.view.facelets.TagAttribute |
recomputeIds |
Constructor and Description |
---|
SubWidgetTagHandler(javax.faces.view.facelets.TagConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
apply(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent)
For each subwidget in current widget, exposes widget variables and applies next handler.
|
protected void |
applyCompat(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent,
Widget[] subWidgets,
FaceletHandlerHelper helper,
boolean recomputeIdsBool) |
protected void |
applyOptimized(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent,
javax.el.VariableMapper orig,
Widget[] subWidgets,
FaceletHandlerHelper helper,
boolean recomputeIdsBool) |
protected final javax.faces.view.facelets.TagConfig config
protected final javax.faces.view.facelets.TagAttribute recomputeIds
public SubWidgetTagHandler(javax.faces.view.facelets.TagConfig config)
public void apply(javax.faces.view.facelets.FaceletContext ctx, javax.faces.component.UIComponent parent) throws IOException, javax.faces.FacesException, javax.el.ELException
Needs widget to be exposed in context, so works in conjunction with WidgetTagHandler
.
Widget variables exposed: RenderVariables.widgetVariables.widget
, same variable suffixed with "_n" where
n is the widget level, and RenderVariables.widgetVariables.widgetIndex
.
IOException
javax.faces.FacesException
javax.el.ELException
protected void applyOptimized(javax.faces.view.facelets.FaceletContext ctx, javax.faces.component.UIComponent parent, javax.el.VariableMapper orig, Widget[] subWidgets, FaceletHandlerHelper helper, boolean recomputeIdsBool) throws IOException, javax.faces.FacesException, javax.el.ELException
IOException
javax.faces.FacesException
javax.el.ELException
protected void applyCompat(javax.faces.view.facelets.FaceletContext ctx, javax.faces.component.UIComponent parent, Widget[] subWidgets, FaceletHandlerHelper helper, boolean recomputeIdsBool) throws IOException, javax.faces.FacesException, javax.el.ELException
IOException
javax.faces.FacesException
javax.el.ELException
Copyright © 2018 Nuxeo. All rights reserved.