[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit SubmitButton.java,1.8,1.9
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2002-03-25 05:07:31
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit
In directory usw-pr-cvs1:/tmp/cvs-serv8353/src/com/meterware/httpunit
Modified Files:
SubmitButton.java
Log Message:
Send position of image button even with no value specified
Index: SubmitButton.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/SubmitButton.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- SubmitButton.java 14 Jan 2002 18:13:45 -0000 1.8
+++ SubmitButton.java 25 Mar 2002 05:07:29 -0000 1.9
@@ -4,12 +4,12 @@
*
* Copyright (c) 2000-2002, Russell Gold
*
-* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
-* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
+* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
+* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions
+* The above copyright notice and this permission notice shall be included in all copies or substantial portions
* of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
@@ -67,8 +67,10 @@
void addValues( ParameterProcessor processor, String characterSet ) throws IOException {
- if (_pressed && !isDisabled() && getName().length() > 0 && getValueAttribute().length() > 0) {
- processor.addParameter( getName(), getValueAttribute(), characterSet );
+ if (_pressed && !isDisabled() && getName().length() > 0) {
+ if (getValueAttribute().length() > 0) {
+ processor.addParameter( getName(), getValueAttribute(), characterSet );
+ }
if (_isImageButton) {
processor.addParameter( getName() + ".x", Integer.toString( _x ), characterSet );
processor.addParameter( getName() + ".y", Integer.toString( _y ), characterSet );
|