Loic schrieb:
> 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
Then don't use a FORM, but just avidget.
> - i dont know how to pass argument to the eventual singleselectField
> widget to fill it with the correct options
You don't know how to do that othewise either, so why do you care?
>
> 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 ?!
Just use SingleSelectField, and do
${somefield.display(value)}
That's it.
Diez
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---