Package org.richfaces.renderkit

Examples of org.richfaces.renderkit.RendererContributor


  public void contributorsEncodeHere(FacesContext context, UIScrollableDataTable grid) throws IOException {
    RendererContributor [] contribs = composite.getContributors();
   
    if (contribs != null) {
      for (int i = 0; i < contribs.length; i++) {
        RendererContributor rendererContributor = contribs[i];
       
        if (rendererContributor instanceof HTMLEncodingContributor) {
          ((HTMLEncodingContributor) rendererContributor).encode(context, grid);
        }
      }
View Full Code Here


  public void contributorsEncodeHere(FacesContext context, UIScrollableDataTable grid) throws IOException {
    RendererContributor [] contribs = composite.getContributors();
   
    if (contribs != null) {
      for (int i = 0; i < contribs.length; i++) {
        RendererContributor rendererContributor = contribs[i];
       
        if (rendererContributor instanceof HTMLEncodingContributor) {
          ((HTMLEncodingContributor) rendererContributor).encode(context, grid);
        }
      }
View Full Code Here

  public void contributorsEncodeHere(FacesContext context, UIScrollableDataTable grid) throws IOException {
    RendererContributor [] contribs = composite.getContributors();
   
    if (contribs != null) {
      for (int i = 0; i < contribs.length; i++) {
        RendererContributor rendererContributor = contribs[i];
       
        if (rendererContributor instanceof HTMLEncodingContributor) {
          ((HTMLEncodingContributor) rendererContributor).encode(context, grid);
        }
      }
View Full Code Here

      throws IOException {
    super.encodeEnd(context, component);
    StringBuffer buffer = new StringBuffer();
    JSFunction function = new JSFunction("new DnD.SimpleDraggable");
    function.addParameter(component.getParent().getClientId(context));
    RendererContributor contributor = DraggableRendererContributor.getInstance();
    ScriptOptions dragOptions = contributor.buildOptions(context, component);
   
    DnDParametersEncoder parametersEncoder = DnDParametersEncoder.getInstance();
    dragOptions.addOption("dndParams", parametersEncoder.doEncodeAsString(context, component));
   
    function.addParameter(dragOptions);
    function.appendScript(buffer);

    String scriptContribution = contributor.getScriptContribution(context, component);
    if (scriptContribution != null && scriptContribution.length() != 0) {
      buffer.append(scriptContribution);
    }

    ResponseWriter writer = context.getResponseWriter();
View Full Code Here

  public void encodeEnd(FacesContext context, UIComponent component)
      throws IOException {
    super.encodeEnd(context, component);

    RendererContributor contributor = DropzoneRendererContributor.getInstance();
    StringBuffer buffer = new StringBuffer();
    JSFunction function = new JSFunction("new DnD.SimpleDropZone");
    function.addParameter(component.getParent().getClientId(context));
    ScriptOptions dropOptions = contributor.buildOptions(context, component);

    DnDParametersEncoder parametersEncoder = DnDParametersEncoder.getInstance();
    dropOptions.addOption("dndParams", parametersEncoder.doEncodeAsString(context, component));

    function.addParameter(dropOptions);
    function.appendScript(buffer);

    String scriptContribution = contributor.getScriptContribution(context, component);
    if (scriptContribution != null && scriptContribution.length() != 0) {
      buffer.append(scriptContribution);
    }

    ResponseWriter writer = context.getResponseWriter();
View Full Code Here

  public void contributorsEncodeHere(FacesContext context, UIScrollableDataTable grid) throws IOException {
    RendererContributor [] contribs = composite.getContributors();
   
    if (contribs != null) {
      for (int i = 0; i < contribs.length; i++) {
        RendererContributor rendererContributor = contribs[i];
       
        if (rendererContributor instanceof HTMLEncodingContributor) {
          ((HTMLEncodingContributor) rendererContributor).encode(context, grid);
        }
      }
View Full Code Here

  public void contributorsEncodeHere(FacesContext context, UIScrollableDataTable grid) throws IOException {
    RendererContributor [] contribs = getContributors();
   
    if (contribs != null) {
      for (int i = 0; i < contribs.length; i++) {
        RendererContributor rendererContributor = contribs[i];
       
        if (rendererContributor instanceof HTMLEncodingContributor) {
          ((HTMLEncodingContributor) rendererContributor).encode(context, grid);
        }
      }
View Full Code Here

      throws IOException {
    super.encodeEnd(context, component);
    StringBuffer buffer = new StringBuffer();
    JSFunction function = new JSFunction("new DnD.SimpleDraggable");
    function.addParameter(component.getParent().getClientId(context));
    RendererContributor contributor = DraggableRendererContributor.getInstance();
    ScriptOptions dragOptions = contributor.buildOptions(context, component);
   
    DnDParametersEncoder parametersEncoder = DnDParametersEncoder.getInstance();
    dragOptions.addOption("dndParams", parametersEncoder.doEncodeAsString(context, component));
   
    function.addParameter(dragOptions);
    function.appendScript(buffer);

    String scriptContribution = contributor.getScriptContribution(context, component);
    if (scriptContribution != null && scriptContribution.length() != 0) {
      buffer.append(scriptContribution);
    }

    ResponseWriter writer = context.getResponseWriter();
View Full Code Here

  public void encodeEnd(FacesContext context, UIComponent component)
      throws IOException {
    super.encodeEnd(context, component);

    RendererContributor contributor = DropzoneRendererContributor.getInstance();
    StringBuffer buffer = new StringBuffer();
    JSFunction function = new JSFunction("new DnD.SimpleDropZone");
    function.addParameter(component.getParent().getClientId(context));
    ScriptOptions dropOptions = contributor.buildOptions(context, component);

    DnDParametersEncoder parametersEncoder = DnDParametersEncoder.getInstance();
    dropOptions.addOption("dndParams", parametersEncoder.doEncodeAsString(context, component));

    function.addParameter(dropOptions);
    function.appendScript(buffer);

    String scriptContribution = contributor.getScriptContribution(context, component);
    if (scriptContribution != null && scriptContribution.length() != 0) {
      buffer.append(scriptContribution);
    }

    ResponseWriter writer = context.getResponseWriter();
View Full Code Here

  public void contributorsEncodeHere(FacesContext context, UIScrollableDataTable grid) throws IOException {
    RendererContributor [] contribs = getContributors();
   
    if (contribs != null) {
      for (int i = 0; i < contribs.length; i++) {
        RendererContributor rendererContributor = contribs[i];
       
        if (rendererContributor instanceof HTMLEncodingContributor) {
          ((HTMLEncodingContributor) rendererContributor).encode(context, grid);
        }
      }
View Full Code Here

TOP

Related Classes of org.richfaces.renderkit.RendererContributor

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.