web/views/basecontrollers.py
branchstable
changeset 4976 34fd21f65702
parent 4911 898c35be5873
child 4984 6cb91be7707f
--- a/web/views/basecontrollers.py	Tue Mar 23 18:16:35 2010 +0100
+++ b/web/views/basecontrollers.py	Tue Mar 23 18:35:04 2010 +0100
@@ -394,7 +394,14 @@
                              for key, value in extraargs.items())
         comp = self._cw.vreg[registry].select(compid, self._cw, rset=rset, **extraargs)
         extraargs = extraargs or {}
-        return comp.render(**extraargs)
+        stream = comp.set_stream()
+        comp.render(**extraargs)
+        extresources = self._cw.html_headers.getvalue(skiphead=True)
+        if extresources:
+            stream.write(u'<div class="ajaxHtmlHead">\n')
+            stream.write(extresources)
+            stream.write(u'</div>\n')
+        return stream.getvalue()
 
     @check_pageid
     @xhtmlize