Package javax.faces.context

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


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

  @Override
  public void encodeChildren(FacesContext context, 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("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 {
        ResponseWriter responseWriter = context.getResponseWriter();       
View Full Code Here

 
  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 {
    ResponseWriter responseWriter = facesContext.getResponseWriter();
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()){
      hasMessages = true;
View Full Code Here

      FacesMessage facesMessage = (FacesMessage) iterator.next();
      stringBuffer.append(facesMessage.getSummary());
      stringBuffer.append("\n");
    }
    if(hasMessages){
      responseWriter.writeAttribute("class","error",null);
      responseWriter.writeAttribute("value",stringBuffer.toString(),null);
      responseWriter.writeAttribute("tooltiptext",stringBuffer.toString(),null);
    }     
    responseWriter.endElement("label");
  }
View Full Code Here

      stringBuffer.append(facesMessage.getSummary());
      stringBuffer.append("\n");
    }
    if(hasMessages){
      responseWriter.writeAttribute("class","error",null);
      responseWriter.writeAttribute("value",stringBuffer.toString(),null);
      responseWriter.writeAttribute("tooltiptext",stringBuffer.toString(),null);
    }     
    responseWriter.endElement("label");
  }
 
View Full Code Here

      stringBuffer.append("\n");
    }
    if(hasMessages){
      responseWriter.writeAttribute("class","error",null);
      responseWriter.writeAttribute("value",stringBuffer.toString(),null);
      responseWriter.writeAttribute("tooltiptext",stringBuffer.toString(),null);
    }     
    responseWriter.endElement("label");
  }
 
View Full Code Here

 
  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 {
    ResponseWriter responseWriter = facesContext.getResponseWriter();
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

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.