public class SubWidgetTagHandler
extends com.sun.facelets.tag.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
.
Constructor and Description |
---|
SubWidgetTagHandler(com.sun.facelets.tag.TagConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
apply(com.sun.facelets.FaceletContext ctx,
UIComponent parent)
For each subwidget in current widget, exposes widget variables and
applies next handler.
|
public SubWidgetTagHandler(com.sun.facelets.tag.TagConfig config)
public void apply(com.sun.facelets.FaceletContext ctx, UIComponent parent) throws IOException, FacesException, 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
FacesException
ELException
Copyright © 2012 Nuxeo SA. All Rights Reserved.