[
http://www.stripesframework.org/jira/browse/STS-479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tim Fennell resolved STS-479.
-----------------------------
Resolution: Cannot Reproduce
I tested this on both Safari and Firefox as I wanted to make sure. The example
code works just fine. The buttons are HTML buttons not submit buttons, and as
such are not serialized by Prototype's Form.Serialize method. Works just fine
for me; I even added an alert during the submit to see the parameter and it did
not include the button names.
Did you actually observe this happening?
> Ajax Calculator Sample calls always divide, never add
> -----------------------------------------------------
>
> Key: STS-479
> URL: http://www.stripesframework.org/jira/browse/STS-479
> Project: Stripes
> Issue Type: Bug
> Components: Examples
> Affects Versions: Release 1.4.3
> Environment: Tomcat 5.9.0, Firefox 2.0.0.11, JDK 1.6
> Reporter: Roger Rene Kommer
> Priority: Minor
>
> Hi,
> I guess, the way descriped in the page
> http://mc4j.org/confluence/display/stripes/AJAX
> multi dispatching to events will not work. Using this sample, allways the
> divide will be called. The reason ist, that in the post sending to the
> server, always all submit values
> are posted (including not submittet submit buttons)
> I replaced following code:
> {code}
> <stripes:button name="add" value="Add"
> onclick="invoke(this.form, this.name, 'result');"/>
> <stripes:button name="divide" value="Divide"
> onclick="invoke(this.form, this.name, 'result');"/>
> {code}
> with
> {code}
> <stripes:button name="" value="Add" onclick="invoke(this.form, 'add',
> 'result');" />
> <stripes:button name="" value="Divide" onclick="invoke(this.form,
> 'divide', 'result');" />
> {code}
> to make the sample working.
> Regards,
> Roger
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development