Hello again, I fixed this by creating a unique form for each matches. The problem was that javascript for the widget was not working because all fields were using same ids. So, on the controller i had to add some code to create a unique form for every match with unique AjaxForm id and it worked.
Osman Kazdal On Sep 28, 1:32 am, Damien Accorsi <[email protected]> wrote: > Hello, > I had a similar problem. What I understood about this is that the TW widgets > are static instances, so If you have dynamic (or several) instances required, > you have to instantiate n times the related widget. > On my own, I did "fix" this by copying the calendar picker widget in a > template function. This is not what should be done, I know this is bullshit, > but I didn't have time in order to fix this properly. > I would be happy to know the best practice in this dynamic case. > Damien > On 09/27/2011 10:59 PM, okazdal wrote:Hello, I am trying to use multiple > forms with one CalendarDateTimePicker field on the same page. It is a list of > their upcoming matches for online gaming clans, what i want to do is a form > on every row of the table for clans to schedule their matches. The form has a > hidden matchid field and a CalendarDateTimePicker field. The problem is that > only the first CalendarDateTimePicker is working, the others don't bring up > calender widget. My genshi code looks like this: <table class="zebra-striped > quiet small"> <thead class="loud"> <tr> <th style="text-align: > center">Tournament</th> <th style="text-align: center">Match</th> </tr> > </thead> <py:for each="tourmatch in tour_matches"> <tr> <td > style="text-align: center"> ${tourmatch.tournament.name} </td> <td > style="text-align: center;"> <py:for each="match in tourmatch.matches"> > ${match.team1.name} vs ${match.team2.name} : ${match.date} <div id="matchid-$ > {match.match_id}"></div> <py:if test="not match.date"> $ > {tmpl_context.sch_match_ajax( dict( matchid = match.match_id , ), id = > match.match_id )} </py:if> </py:for> </td> </tr> </py:for> </table> Thanks. > Osman Kazdal -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

