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

Norman Richards norman.richards at jboss.com
Mon Jan 29 21:46:57 EST 2007


  User: nrichards
  Date: 07/01/29 21:46:57

  Modified:    src/ui/org/jboss/seam/ui  HtmlButton.java
  Log:
  allow button images
  
  Revision  Changes    Path
  1.8       +9 -1      jboss-seam/src/ui/org/jboss/seam/ui/HtmlButton.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: HtmlButton.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/ui/org/jboss/seam/ui/HtmlButton.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- HtmlButton.java	8 Jan 2007 03:45:25 -0000	1.7
  +++ HtmlButton.java	30 Jan 2007 02:46:57 -0000	1.8
  @@ -81,7 +81,15 @@
         
         ResponseWriter writer = context.getResponseWriter();
         writer.startElement("input", this);
  +
  +      String image = getImage();
  +      if (image == null) {
         writer.writeAttribute("type", "button", null);
  +      } else {
  +          writer.writeAttribute("type", "image", null);
  +          writer.writeAttribute("src", image, null);
  +      }
  +
         if ( isDisabled() ) writer.writeAttribute("disabled", true, "disabled");
         writer.writeAttribute("id", getClientId(context), "id");
   
  
  
  



More information about the jboss-cvs-commits mailing list