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
Assignee: Tim Fennell
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