Hello, i have a problem with submit component with context, easy form with loop in TML: <form t:type="form" t:id="testForm" enctype="multipart/form-data"> <t:loop source="1..3" value="testIndex" formState="literal:VALUES"> <input t:type="Submit" t:context="testIndex" value="testButton" t:id="testButton" /> </t:loop> </form>
easy method in CLASS: @Property private Integer _testIndex; @OnEvent(value = "selected",component="testButton") void testButton(Integer param){ ... } BUT in the testButton(Integer param) param is always 3(last index)!!! (after click a button 1, 2, or 3) where is a problem? i have tried loop with formState="literal:VALUES", ITERATION and NONE... really thanks for any suggestions in advance... thanks Matt -- View this message in context: http://old.nabble.com/Submit%28with-context%29-in-Loop-In-Form-tp26467882p26467882.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