[jboss-cvs] jboss-seam/src/ui/org/jboss/seam/ui ...

Gavin King gavin.king at jboss.com
Fri Feb 16 22:02:04 EST 2007


  User: gavin   
  Date: 07/02/16 22:02:04

  Modified:    src/ui/org/jboss/seam/ui  UIDecorate.java
  Log:
  render a span, for the benefit of ajax4jsf
  
  Revision  Changes    Path
  1.6       +3 -0      jboss-seam/src/ui/org/jboss/seam/ui/UIDecorate.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: UIDecorate.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/ui/org/jboss/seam/ui/UIDecorate.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- UIDecorate.java	2 Oct 2006 05:24:33 -0000	1.5
  +++ UIDecorate.java	17 Feb 2007 03:02:04 -0000	1.6
  @@ -107,6 +107,8 @@
      public void encodeBegin(FacesContext context) throws IOException
      {
         super.encodeBegin(context);
  +      context.getResponseWriter().startElement("span", this);
  +      context.getResponseWriter().writeAttribute("id", getClientId(context), "id");
         boolean hasMessage = hasMessage();
         UIComponent aroundDecoration = getDecoration("aroundField");
         UIComponent aroundInvalidDecoration = getDecoration("aroundInvalidField");
  @@ -138,6 +140,7 @@
            aroundInvalidDecoration.setParent(this);
            aroundInvalidDecoration.encodeEnd(context);
         }
  +      context.getResponseWriter().endElement("span");
         super.encodeEnd(context);
      }
   
  
  
  



More information about the jboss-cvs-commits mailing list