Examples of ResponseWriter


Examples of javax.faces.context.ResponseWriter

public class TextRenderer extends XULRenderer {

  @Override
  public void encodeChildren(FacesContext facesContext, UIComponent component) throws IOException {
   
    ResponseWriter responseWriter = facesContext.getResponseWriter();
    UIOutput uiOutput = (UIOutput) component;
    Object value = uiOutput.getValue();   
    responseWriter.write(""+value);
  }
View Full Code Here

Examples of javax.faces.context.ResponseWriter

    }
  }       
 
  public void encodeBegin(FacesContext facesContext, UIComponent component) throws IOException {
    super.encodeBegin(facesContext,component);
    ResponseWriter responseWriter = facesContext.getResponseWriter();
    responseWriter.startElement("listbox", component);
    responseWriter.writeAttribute("id", component.getClientId(facesContext), "id");
    renderAttributes(facesContext, component, (List) component
        .getAttributes().get("annotatedAttributes"));
  }
View Full Code Here

Examples of javax.faces.context.ResponseWriter

        .getAttributes().get("annotatedAttributes"));
  }

 
  public void encodeEnd(FacesContext facesContext, UIComponent arg1) throws IOException {
    ResponseWriter responseWriter = facesContext.getResponseWriter();
    responseWriter.endElement("listbox");
  }
View Full Code Here

Examples of javax.faces.context.ResponseWriter

public class WizardRenderer extends XULRenderer {
 
  @Override
  public void encodeBegin(FacesContext facesContext, UIComponent component) throws IOException {
    super.encodeBegin(facesContext,component);
    ResponseWriter responseWriter = facesContext.getResponseWriter();
    responseWriter.startElement("wizard",component);
    responseWriter.writeAttribute("id",component.getClientId(facesContext), "id");
    responseWriter.writeAttribute("xmlns","http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul","xmlns");
    responseWriter.writeAttribute("xmlns:html","http://www.w3.org/1999/xhtml","xmlns:html");
    responseWriter.writeAttribute("xmlns:xfc","http://xulfaces.sourceforge.net/xulfaces/xul/client.xul","xmlns:xfc");
    renderAttributes(facesContext,component,(List) component.getAttributes().get("annotatedAttributes"));
  }
View Full Code Here

Examples of javax.faces.context.ResponseWriter

public class FrameRenderer extends XULRenderer {

  @Override
  public void encodeBegin(FacesContext facesContext, UIComponent component) throws IOException {   
    super.encodeBegin(facesContext, component);
    ResponseWriter responseWriter = facesContext.getResponseWriter();
    responseWriter.startElement("iframe",component);
    responseWriter.writeAttribute("id",component.getClientId(facesContext), "id");
    renderAttributes(facesContext,component,(List) component.getAttributes().get("annotatedAttributes"));
  }
View Full Code Here

Examples of javax.faces.context.ResponseWriter

    renderAttributes(facesContext,component,(List) component.getAttributes().get("annotatedAttributes"));
  }

  @Override
  public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
        ResponseWriter responseWriter = context.getResponseWriter();       
        responseWriter.endElement("wizard")
 
View Full Code Here

Examples of javax.faces.context.ResponseWriter

    responseWriter.writeAttribute("id",component.getClientId(facesContext), "id");
    renderAttributes(facesContext,component,(List) component.getAttributes().get("annotatedAttributes"));
  }
 
  public void encodeEnd(FacesContext facesContext, UIComponent component) throws IOException {
    ResponseWriter responseWriter = facesContext.getResponseWriter();               
        responseWriter.endElement("iframe");   
  }
View Full Code Here

Examples of javax.faces.context.ResponseWriter

public class WizardPageRenderer  extends XULRenderer {
 
  @Override
  public void encodeBegin(FacesContext facesContext, UIComponent component) throws IOException {
    super.encodeBegin(facesContext,component);               
    ResponseWriter responseWriter = facesContext.getResponseWriter();
    responseWriter.startElement("wizardpage",component);
    responseWriter.writeAttribute("id",component.getClientId(facesContext), "id");
    renderAttributes(facesContext,component,(List) component.getAttributes().get("annotatedAttributes"));
  }
View Full Code Here

Examples of javax.faces.context.ResponseWriter

*/
@RENDERER(kit="XUL_RENDERKIT",family="xul.component.family",type="xul.renderer.Image")
public class ImageRenderer extends XULRenderer {

  public void encodeEnd(FacesContext facesContext, UIComponent component) throws IOException {
        ResponseWriter responseWriter = facesContext.getResponseWriter();       
    responseWriter.startElement("image",component);
    responseWriter.writeAttribute("id",component.getClientId(facesContext), "id");
    renderAttributes(facesContext,component,(List) component.getAttributes().get("annotatedAttributes"));
        responseWriter.endElement("image")
 
View Full Code Here

Examples of javax.faces.context.ResponseWriter

 
  public void encodeBegin(FacesContext facesContext, UIComponent component) throws IOException {
    super.encodeBegin(facesContext, component);
   
    ResponseWriter responseWriter = facesContext.getResponseWriter();
    responseWriter.startElement("listcell", component);
   
    StringBuffer clientId = new StringBuffer(component.getClientId(facesContext));
    clientId.append(":");
    clientId.append(component.getParent().getAttributes().get("rowId"));
    clientId.append(":");
    clientId.append(component.getId());
    responseWriter.writeAttribute("id",clientId.toString(), "id");
       
    String value = getValueAsString(facesContext,(UIOutput) component);       
    responseWriter.writeAttribute("label", value, "label");       
    renderAttributes(facesContext, component, (List) component
        .getAttributes().get("annotatedAttributes"));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.