Re: Adding CSS and JS to the components
Re: Adding CSS and JS to the components
- Subject: Re: Adding CSS and JS to the components
- From: Mike Schrag <email@hidden>
- Date: Tue, 30 Sep 2008 07:40:17 -0400
ERXResponseRewriter
.addStylesheetResourceInHead(context().response(), context(), null,
"my.css");
ERXResponseRewriter.addScriptResourceInHead(context().response(),
context(), null, "my.js");
I would only use this method if you're injecting CSS/js from a
subcomponent. If you are adding it in your headerfooter component,
you should use:
<wo:ERXStyleSheet framework="whatever" filename="CSS/MyCSSFile.css"/>
<wo:ERXJavaScript framework="whataver" filename="Javascript/
MyJavascriptFile.css"/>
ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden