[
https://issues.apache.org/jira/browse/TAP5-869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Howard M. Lewis Ship closed TAP5-869.
-------------------------------------
Resolution: Invalid
This is why you can turn deferred (triggering of the 'selected' event) off.
> When Submit is used inside Loop and configured as defered (default), context
> value from last loop iteration is always taken as "selected" event argument
> --------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: TAP5-869
> URL: https://issues.apache.org/jira/browse/TAP5-869
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.5
> Reporter: Vjeran Marcinko
>
> One of major uses of Submit's "context" parameter is when Submit is used
> inside Loop to be able to distinguish which button was pressed.
> Unfortunately, always context value from last loop iteration gets passed via
> "selected" event argument, making it always look as if last iteration submit
> was selected.
> When "defer" parameter is set to false (it's true by default), then
> everything works fine.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira