Package javax.faces.context

Examples of javax.faces.context.ResponseWriter.startElement()


public class ButtonRenderer extends XULRenderer {

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


public class ListHeadRenderer extends XULRenderer {
 
  public void encodeBegin(FacesContext facesContext, UIComponent component) throws IOException {   
    super.encodeBegin(facesContext, component);
    ResponseWriter responseWriter = facesContext.getResponseWriter();
    responseWriter.startElement("listhead", component);
    responseWriter.writeAttribute("id", component.getClientId(facesContext), "id");
    renderAttributes(facesContext,component,(List) component.getAttributes().get("annotatedAttributes"));
  }

  public void encodeEnd(FacesContext facesContext, UIComponent component) throws IOException {
View Full Code Here

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

   
    if(forId == null){
      throw new NullPointerException("For is null for MessageComponent !");
    }
   
    responseWriter.startElement("label",component);
    responseWriter.writeAttribute("id",component.getClientId(facesContext),"id");
    StringBuffer stringBuffer = new StringBuffer();
    boolean hasMessages = false;
    Iterator iterator  = facesContext.getMessages(forId);
    while(iterator.hasNext()){
View Full Code Here

public class ListColsRenderer extends XULRenderer {
 
  public void encodeBegin(FacesContext facesContext, UIComponent component) throws IOException {   
    super.encodeBegin(facesContext, component);
    ResponseWriter responseWriter = facesContext.getResponseWriter();
    responseWriter.startElement("listcols", component);
    responseWriter.writeAttribute("id", component.getClientId(facesContext), "id");
    renderAttributes(facesContext,component,(List) component.getAttributes().get("annotatedAttributes"));
  }

  public void encodeEnd(FacesContext facesContext, UIComponent component) throws IOException {
View Full Code Here

  }       
 
  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

 
  @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

  @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"));
  }
 
  public void encodeEnd(FacesContext facesContext, UIComponent component) throws IOException {
View Full Code Here

 
  @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"));
  }
 
  @Override
View Full Code Here

@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

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.