Package com.sun.facelets.tag

Examples of com.sun.facelets.tag.TextHandler


    protected void onComponentCreated(FaceletContext ctx, UIComponent c, UIComponent parent) {
        StringBuffer content = new StringBuffer();
        Iterator iter = findNextByType(TextHandler.class);
        while (iter.hasNext()) {
            TextHandler text = (TextHandler) iter.next();
            content.append(text.getText(ctx));
        }

        c.getAttributes().put("value", content.toString());
        c.getAttributes().put("escape", Boolean.FALSE);
        c.setTransient(true);
View Full Code Here


  protected void onComponentCreated(FaceletContext context, UIComponent component, UIComponent parent) {
    StringBuffer content = new StringBuffer();
    Iterator iter = findNextByType(TextHandler.class);
    while (iter.hasNext()) {
      TextHandler text = (TextHandler) iter.next();
      content.append(text.getText(context));
    }
    if (component instanceof UIStyle) {
      ((UIStyle) component).setStyle(content.toString());
    }
  }
View Full Code Here

  protected void onComponentCreated(FaceletContext context, UIComponent component, UIComponent parent) {
    StringBuffer content = new StringBuffer();
    Iterator iter = findNextByType(TextHandler.class);
    while (iter.hasNext()) {
      TextHandler text = (TextHandler) iter.next();
      content.append(text.getText(context));
    }
    if (component instanceof UIScript) {
      ((UIScript) component).setScript(content.toString());
    }
View Full Code Here

        page.getStyleFiles().add(style.getValue(faceletContext));
      }
      StringBuffer buffer = new StringBuffer();
      Iterator iter = findNextByType(TextHandler.class);
      while (iter.hasNext()) {
        TextHandler text = (TextHandler) iter.next();
        buffer.append(text.getText(faceletContext));
      }
      String content = buffer.toString().trim();

      if (content.length() > 0) {
        page.getStyleBlocks().add(content);
View Full Code Here

        page.getOnsubmitScripts().add(onsubmit.getValue(faceletContext));
      }
      StringBuffer buffer = new StringBuffer();
      Iterator iter = findNextByType(TextHandler.class);
      while (iter.hasNext()) {
        TextHandler text = (TextHandler) iter.next();
        buffer.append(text.getText(faceletContext));
      }
      String content = buffer.toString().trim();

      if (content.length() > 0) {
        page.getScriptBlocks().add(content);
View Full Code Here

        page.getOnexitScripts().add(onexit.getValue(faceletContext));
      }
      StringBuffer buffer = new StringBuffer();
      Iterator iter = findNextByType(TextHandler.class);
      while (iter.hasNext()) {
        TextHandler text = (TextHandler) iter.next();
        buffer.append(text.getText(faceletContext));
      }
      String content = buffer.toString().trim();

      if (content.length() > 0) {
        page.getScriptBlocks().add(content);
View Full Code Here

    protected void onComponentCreated(FaceletContext ctx, UIComponent c, UIComponent parent) {
        StringBuffer content = new StringBuffer();
        Iterator iter = findNextByType(TextHandler.class);
        while (iter.hasNext()) {
            TextHandler text = (TextHandler) iter.next();
            content.append(text.getText(ctx));
        }

        c.getAttributes().put("value", content.toString());
        c.getAttributes().put("escape", Boolean.FALSE);
        c.setTransient(true);
View Full Code Here

        page.getOnsubmitScripts().add(onsubmit.getValue(faceletContext));
      }
      StringBuffer buffer = new StringBuffer();
      Iterator iter = findNextByType(TextHandler.class);
      while (iter.hasNext()) {
        TextHandler text = (TextHandler) iter.next();
        buffer.append(text.getText(faceletContext));
      }
      String content = buffer.toString().trim();

      if (content.length() > 0) {
        page.getScriptBlocks().add(content);
View Full Code Here

        page.getStyleFiles().add(style.getValue(faceletContext));
      }
      StringBuffer buffer = new StringBuffer();
      Iterator iter = findNextByType(TextHandler.class);
      while (iter.hasNext()) {
        TextHandler text = (TextHandler) iter.next();
        buffer.append(text.getText(faceletContext));
      }
      String content = buffer.toString().trim();

      if (content.length() > 0) {
        page.getStyleBlocks().add(content);
View Full Code Here

  protected void onComponentCreated(FaceletContext context, UIComponent component, UIComponent parent) {
    StringBuffer content = new StringBuffer();
    Iterator iter = findNextByType(TextHandler.class);
    while (iter.hasNext()) {
      TextHandler text = (TextHandler) iter.next();
      content.append(text.getText(context));
    }
    if (component instanceof UIScript) {
      ((UIScript) component).setScript(content.toString());
    }
View Full Code Here

TOP

Related Classes of com.sun.facelets.tag.TextHandler

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.