"Mark Ramm" <[EMAIL PROTECTED]> writes:
>>  You could grab the template for the TableForm widget, add this  
>> little
>> snippit to the top of it and overide the template param of TableForm,
>> and and get what you want.
>>
>> If you need this kind of form a lot, create your own CustomFormWidget
>> class, and set it up with it's own default template param.
>
> Or put this on your master template...

You could also add a JSSource to the form's javascript:

class MyForm(TableForm):
        javascript = [JSSource("""
addLoadEvent(function(){
          if (document.forms.length > 0)
           document.forms[0].elements[0].focus();
});
""")]

Alberto

--~--~---------~--~----~------------~-------~--~----~
 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to