I agree that under normal circumstances the layout component should
override styles in the embedded component, except in the cases (such as
this example) where the embedded component represents a page. We /want/
the page to be able to have the ability to override styles in the
"general" contain
Martin,
I've just looked at DocumentScriptBuilder, which seems to be a delegate
of PageRenderSupport(Impl). I understand that PageRenderSupport uses a
notification (cleanup i think) to know when to insert the scripts, but
the way scripts are added (correct me if I'm wrong) are via explicit
me
I have some thoughts on ordering, but first could you elaborate on, or
better yet point me to documentation on teh Environmental service? I've
seen it mentioned but know nothing about it.
Robert Zeigler wrote:
Overall, that looks pretty good, but you could handle it easier, I
think, by using t
Well, one could peek to get the markupwriter, but perhaps you may want
to dig through the sourcecode to see what Howard's done to support
adding javascript files on the fly. He uses a 'service'
DocumentScriptBuilder to 'declare' the various scripts as well as keep
them unique and then once all
Overall, that looks pretty good, but you could handle it easier, I
think, by using the environment service.
The top level document is available during render from the
Environment service, so you could use that in place of steps 2 and 3.
Consistent ordering would be nice... the difficult thing t
So it looks like one would need to (re)create something similar to the
T4 Shell component.
I've taken a brief look at the DOM api, and if I were to write something
as focused as a Style component, then it looks like I'd have to:
1) create my component class, either in my.namespace.components, o
T5 renders with a dom.
Gives you a lot of control...
You could create a "style" component that finds the head and inserts
the appropriate element.
Then your components could add their own stylesheets using the style
component, with the page and containing components none the wiser.
You would
One of the nice things I learned in my brief investigation of T4.1.2 was
that the Shell component would automatically pick up any style sheets a
page declared using the @Style annotation (or something like that). I've
been wondering how something like this might be achieved in T5, using
the ava