Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.forms.layout.facelets
Class SubWidgetTagHandler

java.lang.Object
  extended by com.sun.facelets.tag.TagHandler
      extended by org.nuxeo.ecm.platform.forms.layout.facelets.SubWidgetTagHandler
All Implemented Interfaces:
com.sun.facelets.FaceletHandler

public class SubWidgetTagHandler
extends com.sun.facelets.tag.TagHandler

SubWidget tag handler.

Iterates over a widget subwidgets and apply next handlers as many times as needed.

Only works when used inside a tag using the WidgetTagHandler.

Author:
Anahide Tchertchian

Constructor Summary
SubWidgetTagHandler(com.sun.facelets.tag.TagConfig config)
           
 
Method Summary
 void apply(com.sun.facelets.FaceletContext ctx, UIComponent parent)
          For each subwidget in current widget, exposes widget variables and applies next handler.
 
Methods inherited from class com.sun.facelets.tag.TagHandler
toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubWidgetTagHandler

public SubWidgetTagHandler(com.sun.facelets.tag.TagConfig config)
Method Detail

apply

public void apply(com.sun.facelets.FaceletContext ctx,
                  UIComponent parent)
           throws IOException,
                  FacesException,
                  ELException
For each subwidget in current widget, exposes widget variables and applies next handler.

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.

Throws:
IOException
FacesException
ELException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.