Thanks Remi for your answer
However i dont use widget in this case because of this two things : - i dont want that the user push a valid button, only change the value of the list should be sufficient - i dont know how to pass argument to the eventual singleselectField widget to fill it with the correct options Perhaps it is a solution whith widget that take care of this two points ?? so i have started by just doind this in my kid file : <select id = "someId" onchange=handleChange> for l in mylist <option value = l.value>l.name</option> </select> in this case how can i set my select Box to the value "Myvalu"e that is sent by my controller ?! Cheers On 2 sep, 23:18, Remi Jolin - SysGroup <[EMAIL PROTECTED]> wrote: > le 02.09.2008 23:13 Loic a écrit:> Hi all ! > > > i have a <select > in my kid file and i fill it with some <option> > > added by values sent by my controllers. > > A handle send to the controller the new value to be stored when the > > item of the list is changed. > > How i have to do to correctly put the good option for the select when > > the user come back in the page ? > > pass the selected value in the value dict that you pass as a parameter > of your widget (my_widget.display(value=...)), like you would do for any > other field. > > > Cheers > > > Lo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

