Re: Get selected item from loop

2012-12-05 Thread dodjavola
Tnx, I solved the problem :D -- View this message in context: http://tapestry.1045711.n5.nabble.com/Get-selected-item-from-loop-tp5718460p5718496.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsu

Re: Get selected item from loop

2012-12-03 Thread Joost Schouten (mailing lists)
Hi, I'm not quite sure what you are trying to achieve but in any case you do not use the context you pass in in your actionlinks and use hardcoded int's in stead. Change your action links to 3 and change your event handlers to public void onActionFromJedan(int context) { unesi

Re: Get selected item from loop

2012-12-03 Thread dodjavola
There is no form around loop. Here is the code of my component: public class Ocenjivanje { @Parameter(required=true) @Property private int materijalID; private Materijal materijal; @Inject private Session session;

Re: Get selected item from loop

2012-12-03 Thread Joost Schouten (mailing lists)
Can you share the code of "mycomponent"? I suspect you are persisting the value in stead of adding it to the context right away. And do you have a form around this loop? Cheers, Joost On Dec 3, 2012, at 1:50 PM, dodjavola wrote: > 'm currently working on some project, using Apache Tapestry 5.