[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit WebForm.java,1.70,1.71
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2002-12-13 12:59:44
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit
In directory sc8-pr-cvs1:/tmp/cvs-serv17362/src/com/meterware/httpunit
Modified Files:
WebForm.java
Log Message:
Made WebForm.submit(SubmitButton) public
Index: WebForm.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/WebForm.java,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -r1.70 -r1.71
--- WebForm.java 20 Nov 2002 13:04:15 -0000 1.70
+++ WebForm.java 13 Dec 2002 12:59:41 -0000 1.71
@@ -60,7 +60,7 @@
* Will usually return the result of that submission; however, if a scripted event is triggered which
* inhibits the submission, will return the updated contents of the frame containing this form.
**/
- WebResponse submit( SubmitButton button ) throws IOException, SAXException {
+ public WebResponse submit( SubmitButton button ) throws IOException, SAXException {
String event = getAttribute( "onsubmit" );
if (event.length() == 0 || getScriptableObject().doEvent( event )) return submitRequest( getRequest( button ) );
return getBaseResponse().getWindow().getFrameContents( getTarget() );
@@ -593,11 +593,6 @@
private FormControl[] _presetParameters;
private ArrayList _presets;
-
-
- private Object getObject( String name ) {
- return getParameter( name ).getScriptableObject();
- }
private SubmitButton getDefaultButton() {
|