Brian Cole schrieb:
> The JSSource defined inline in the JumpMenu widget is not rendering
> when the display method is called within a kid template. I've simply
> copy and pasted the exact JSSource over to another widget in the same
> page and then it renders fine.

You need to return the widget in the dict from your controller as one of
the values, e.g.

@expose(...)
def mypage(self):
   ...
   return dict(jumpmenu=widgets.JumpMenu(...), ...)

Only then the JS/CSS inclusion will work. Also, make sure that your
templates derive from 'sitetemple.kid'. (usually through the standard
'master.kid'


HTH, Chris

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