Support Requests item #1054854, was opened at 2004-10-26 16:46
Message generated for change (Comment added) made by ftherrie
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497983&aid=1054854&group_id=61302

Category: None
Group: None
Status: Open
Priority: 5
Submitted By: Jacob Kjome (jacobk)
Assigned to: Nobody/Anonymous (nobody)
Summary: need support for multiple submit buttons with same name

Initial Comment:
It is a common thing in Struts (and I've seen this
elsewhere as well) to have multiple submit buttons with
the same name.  The differentiator is the value of each
submit button.  So, I think there needs to be a new
method such as...

submit(String name, String value);

for instance...

<input type="submit" name="method" value="Process">
<input type="submit" name="method" value="Search">
<input type="submit" name="method" value="Back">

submit("method", "Search");


Might this feature get in the next release?


Jake

----------------------------------------------------------------------

Comment By: fred (ftherrie)
Date: 2005-02-18 14:28

Message:
Logged In: YES 
user_id=1199711

Why you don't use the method clickButton. You juste have to
give an Id to each button and you will be able to click on
the one you want. Submit is good if you only have 1 button
but more than that, I think the clickButton have been create
for this.

----------------------------------------------------------------------

Comment By: Jacob Kjome (jacobk)
Date: 2004-10-26 17:42

Message:
Logged In: YES 
user_id=517746


Ok, I found a report that is supposed to have addressed this
issue...
http://sourceforge.net/tracker/index.php?func=detail&aid=745868&group_id=61302&atid=497984

However, what's the actual fix?  I looked at the source and
neither the supplied patch nor the comment about adding the
submitFormByLabel(label) method seem to exist in the 1.2
release.  Nevertheless, the last comment says "This is fixed
in release 1.2".  So, again, what's the fix.  Did it never
actually make it into source control or am I just missing
something???

Jake

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497983&aid=1054854&group_id=61302


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to