seade       2003/09/14 04:36:26

  Modified:    src/java/org/apache/turbine/modules ActionEvent.java
               xdocs    changes.xml
  Log:
  Fixed the code that removes the trailing ".x" and ".y" from action events that 
originate from input type="image" elements.
  
  Revision  Changes    Path
  1.21      +4 -4      
jakarta-turbine-2/src/java/org/apache/turbine/modules/ActionEvent.java
  
  Index: ActionEvent.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/modules/ActionEvent.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- ActionEvent.java  2 Sep 2003 07:48:30 -0000       1.20
  +++ ActionEvent.java  14 Sep 2003 11:36:26 -0000      1.21
  @@ -262,9 +262,9 @@
               tmp = input.toLowerCase();
               
               // Chop off suffixes (for image type)
  -            input = (tmp.endsWith(".x") || tmp.endsWith(".y"))
  -                    ? input.substring(0, input.length() - 2)
  -                    : input;
  +            tmp = (tmp.endsWith(".x") || tmp.endsWith(".y"))
  +                    ? tmp.substring(0, tmp.length() - 2)
  +                    : tmp;
               
               if (ParserUtils.getUrlFolding() 
                       != ParserUtils.URL_CASE_FOLDING_NONE)
  
  
  
  1.63      +5 -0      jakarta-turbine-2/xdocs/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-2/xdocs/changes.xml,v
  retrieving revision 1.62
  retrieving revision 1.63
  diff -u -r1.62 -r1.63
  --- changes.xml       11 Sep 2003 10:32:29 -0000      1.62
  +++ changes.xml       14 Sep 2003 11:36:26 -0000      1.63
  @@ -80,6 +80,11 @@
          input is provided.  A minLength > 0 rule is no longer synonymous
          with required=true.
       </li>
  +    <li>
  +       Actions triggered from html input elements with type="button" are 
  +       now processed correctly (the trailing ".x" and ".y" are removed from
  +       the event names).
  +    </li>
     </ul>
   </p>
   </subsection>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to