Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

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

public class WidgetTagHandler
extends com.sun.facelets.tag.MetaTagHandler

Widget tag handler.

Applies WidgetTypeHandler found for given widget, in given mode and for given value.

Author:
Anahide Tchertchian

Constructor Summary
WidgetTagHandler(com.sun.facelets.tag.TagConfig config)
           
 
Method Summary
 void apply(com.sun.facelets.FaceletContext ctx, UIComponent parent)
          Renders given widget resolving its FaceletHandler from WebLayoutManager configuration.
static void applyWidgetHandler(com.sun.facelets.FaceletContext ctx, UIComponent parent, com.sun.facelets.tag.TagConfig config, Widget widget, com.sun.facelets.tag.TagAttribute value, boolean fillVariables)
           
static void generateWidgetIdsRecursive(FaceletHandlerHelper helper, Widget widget)
           
 
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

WidgetTagHandler

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

apply

public void apply(com.sun.facelets.FaceletContext ctx,
                  UIComponent parent)
           throws IOException,
                  FacesException,
                  ELException
Renders given widget resolving its FaceletHandler from WebLayoutManager configuration.

Variables exposed: RenderVariables.globalVariables.value, same variable suffixed with "_n" where n is the widget level, and RenderVariables.globalVariables.document.

Throws:
IOException
FacesException
ELException

generateWidgetIdsRecursive

public static void generateWidgetIdsRecursive(FaceletHandlerHelper helper,
                                              Widget widget)

applyWidgetHandler

public static void applyWidgetHandler(com.sun.facelets.FaceletContext ctx,
                                      UIComponent parent,
                                      com.sun.facelets.tag.TagConfig config,
                                      Widget widget,
                                      com.sun.facelets.tag.TagAttribute value,
                                      boolean fillVariables)
                               throws IOException
Throws:
IOException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.