[
https://issues.apache.org/jira/browse/TAPESTRY-1630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517798
]
Paul Stanton commented on TAPESTRY-1630:
----------------------------------------
well, the button component was what i was trying to use as buttons are
generally used for non form submission task. i was just testing with submit and
linksubmit to prove a point. basically i need to use button for the look and
feel of a button, but am bemused as to why using button means my form will
always be submitted. isn't that what the autoSubmit parameter was for? that's
how you described it in the mailing lists?
> EventListener autoSubmit=false has no effect
> --------------------------------------------
>
> Key: TAPESTRY-1630
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1630
> Project: Tapestry
> Issue Type: Bug
> Components: Annotations, Core Components
> Affects Versions: 4.1.2
> Environment: win xp, java 1.6.0_01
> Reporter: Paul Stanton
> Assignee: Jesse Kuhnert
>
> setting autoSubmit=false on @EventListener, autoSubmit="false" on LinkSubmit,
> Button and Submit has no effect. FYI I also had async=true.
> my page's form submit listener was called for async requests regardless of
> the setting for autoSubmit
> @EventListener(targets = {"myButton"}, events = "onclick", async = true,
> autoSubmit = false)
> public void showDialog()
> <input type="button" jwcid="[EMAIL PROTECTED]" label="Show Dialog"/>
> <input type="submit" jwcid="@Submit" listener="listener:showDialog"
> async="true" autoSubmit="false" label="Show Dialog"/>
> <a jwcid="@LinkSubmit" listener="listener:showDialog" async="true"
> autoSubmit="false">Show Dialog</a>
> Workaround: use DirectLink for async requests where the form should not be
> submitted
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]