Package com.sun.jsftemplating.component

Examples of com.sun.jsftemplating.component.TemplateComponent


  if (!(component instanceof TemplateComponent)) {
      throw new IllegalArgumentException(
    "TemplateRenderer requires that its UIComponent be an "
    + "instance of TemplateComponent!");
  }
  TemplateComponent tempComp = (TemplateComponent) component;
  LayoutDefinition def = tempComp.getLayoutDefinition(context);

  // First ensure that our Resources are available
  Iterator<Resource> it = def.getResources().iterator();
  Resource resource = null;
  while (it.hasNext()) {
View Full Code Here


  if (!component.isRendered()) {
      return;
  }

  // Get the LayoutDefinition and begin rendering
  TemplateComponent tempComp = (TemplateComponent) component;
  LayoutDefinition def = tempComp.getLayoutDefinition(context);

  // The following "encode" method does all the rendering
  def.encode(context, (UIComponent) tempComp);
    }
View Full Code Here

    public void decode(FacesContext context, UIComponent component) {
  // Call the super first
  super.decode(context, component);

  // Call any decode handlers
  TemplateComponent tempComp = (TemplateComponent) component;
  LayoutDefinition def = tempComp.getLayoutDefinition(context);
  def.decode(context, component);
    }
View Full Code Here

TOP

Related Classes of com.sun.jsftemplating.component.TemplateComponent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.