craigmcc    01/06/12 20:49:47

  Modified:    doc      struts-html.xml
               src/share/org/apache/struts/taglib/html BaseHandlerTag.java
  Log:
  Port the fix for bugzilla #2133.
  
  Revision  Changes    Path
  1.14      +9 -0      jakarta-struts/doc/struts-html.xml
  
  Index: struts-html.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/doc/struts-html.xml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- struts-html.xml   2001/06/01 18:58:35     1.13
  +++ struts-html.xml   2001/06/13 03:49:44     1.14
  @@ -2527,6 +2527,15 @@
                   </attribute>
   
                   <attribute>
  +                  <name>title</name>
  +                  <required>false</required>
  +                  <rtexprvalue>true</rtexprvalue>
  +                  <info>
  +                  <p>The advisory title for this hyperlink.</p>
  +                  </info>
  +                </attribute>
  +
  +                <attribute>
                     <name>transaction</name>
                     <required>false</required>
                     <rtexprvalue>true</rtexprvalue>
  
  
  
  1.6       +29 -4     
jakarta-struts/src/share/org/apache/struts/taglib/html/BaseHandlerTag.java
  
  Index: BaseHandlerTag.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/BaseHandlerTag.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- BaseHandlerTag.java       2001/06/10 03:53:31     1.5
  +++ BaseHandlerTag.java       2001/06/13 03:49:46     1.6
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/BaseHandlerTag.java,v 
1.5 2001/06/10 03:53:31 craigmcc Exp $
  - * $Revision: 1.5 $
  - * $Date: 2001/06/10 03:53:31 $
  + * $Header: 
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/BaseHandlerTag.java,v 
1.6 2001/06/13 03:49:46 craigmcc Exp $
  + * $Revision: 1.6 $
  + * $Date: 2001/06/13 03:49:46 $
    *
    * ====================================================================
    *
  @@ -71,7 +71,7 @@
    * appropriate implementations of these.
    *
    * @author Don Clasen
  - * @version $Revision: 1.5 $ $Date: 2001/06/10 03:53:31 $
  + * @version $Revision: 1.6 $ $Date: 2001/06/13 03:49:46 $
    */
   
   public abstract class BaseHandlerTag extends BodyTagSupport {
  @@ -162,6 +162,12 @@
       /** Identifier associated with component.  */
       private String styleId = null;
   
  +// Other Common Attributes
  +
  +    /** The advisory title of this element. */
  +    private String title = null;
  +
  +
       // ------------------------------------------------------------- Properties
   
   //  Navigation Management
  @@ -387,6 +393,19 @@
           return styleId;
       }
   
  +// Other Common Elements
  +
  +    /** Returns the advisory title attribute. */
  +    public String getTitle() {
  +        return title;
  +    }
  +
  +    /** Sets the advisory title attribute. */
  +    public void setTitle(String title) {
  +        this.title = title;
  +    }
  +
  +
       // --------------------------------------------------------- Public Methods
   
   
  @@ -417,6 +436,7 @@
        style = null;
        styleClass = null;
           styleId = null;
  +        title = null;
   
       }
   
  @@ -443,6 +463,11 @@
           if (styleId != null) {
               styles.append(" id=\"");
               styles.append(styleId);
  +            styles.append("\"");
  +        }
  +        if (title != null) {
  +            styles.append(" title=\"");
  +            styles.append(title);
               styles.append("\"");
           }
           return styles.toString();
  
  
  

Reply via email to