This seems to be a bug.

Also the JavaDoc of Submit is a bit mileading: "The notification is named
"selected" and has no context" in the class but "The list of values that
will be made available to event handler method of this component when the
form is submitted." on the context parameter.

A solution might be to store the context in ProcessSubmission component
action.

-- 
Chris


Stephan Windmüller wrote:
> 
> Hi!
> 
> About a year ago there was a bug regarding the usage of submit buttons
> with context in loops:
> 
> https://issues.apache.org/jira/browse/TAP5-869
> 
> The bug was closed because using the defer parameter of the submit
> button fixed the problem.
> 
> Now I have the same problem, but this time in a Grid rather than a loop
> component. Defer is set to false but every time I click on a button,
> only the context of the last one is used.
> 
> I created a small example demonstrating the problem, it is attached to
> this e-mail. Try clicking on every user and watch the console output:
> Always the last user is printed.
> 
> Is there a workaround? Is it a known bug or should I file a bug report?
> 
> Regards
>  Stephan
> 


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Combination-of-Grid-Submit-Button-and-Context-does-not-work-tp4813699p4818363.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to