myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmarinsc...@apache.org
Subject cvs commit: incubator-myfaces/src/myfaces/org/apache/myfaces/renderkit/html HtmlLabelRenderer.java
Date Sun, 09 Jan 2005 09:10:56 GMT
mmarinschek    2005/01/09 01:10:56

  Modified:    src/myfaces/org/apache/myfaces/renderkit/html
                        HtmlLabelRenderer.java
  Log:
  prepare call-back methods for renderer
  
  Revision  Changes    Path
  1.15      +16 -1     incubator-myfaces/src/myfaces/org/apache/myfaces/renderkit/html/HtmlLabelRenderer.java
  
  Index: HtmlLabelRenderer.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/myfaces/org/apache/myfaces/renderkit/html/HtmlLabelRenderer.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- HtmlLabelRenderer.java	23 Dec 2004 13:03:08 -0000	1.14
  +++ HtmlLabelRenderer.java	9 Jan 2005 09:10:56 -0000	1.15
  @@ -36,6 +36,9 @@
    * @author Martin Marinschek
    * @version $Revision$ $Date$
    * $Log$
  + * Revision 1.15  2005/01/09 09:10:56  mmarinschek
  + * prepare call-back methods for renderer
  + *
    * Revision 1.14  2004/12/23 13:03:08  mmarinschek
    * id's not rendered (or not conditionally rendered); changes in jslistener to support
both ie and firefox now
    *
  @@ -67,6 +70,8 @@
   
           ResponseWriter writer = facesContext.getResponseWriter();
   
  +        encodeBefore(facesContext, writer, uiComponent);
  +
           writer.startElement(HTML.LABEL_ELEM, uiComponent);
           HtmlRendererUtils.writeIdIfNecessary(writer, uiComponent, facesContext);
           HtmlRendererUtils.renderHTMLAttributes(writer, uiComponent, HTML.LABEL_PASSTHROUGH_ATTRIBUTES);
  @@ -124,6 +129,10 @@
           writer.flush(); // close start tag
       }
   
  +    protected void encodeBefore(FacesContext facesContext, ResponseWriter writer, UIComponent
uiComponent)
  +    {
  +    }
  +
   
       protected String getFor(UIComponent component)
       {
  @@ -145,5 +154,11 @@
   
           ResponseWriter writer = facesContext.getResponseWriter();
           writer.endElement(HTML.LABEL_ELEM);
  +
  +        encodeAfter(facesContext, writer, uiComponent);
  +    }
  +
  +    protected void encodeAfter(FacesContext facesContext, ResponseWriter writer, UIComponent
uiComponent)
  +    {
       }
   }
  
  
  

Mime
View raw message