Re: CSS Confusion
Re: CSS Confusion
- Subject: Re: CSS Confusion
- From: Kaj Hejer <email@hidden>
- Date: Thu, 4 Mar 2004 21:30:15 +0100
At 13:26 -0600 04-03-04, James Cicenia wrote:
Greetings --
On wocode there are three methods of adding a CSS StyleSheet
to the application. What is the best method to:
1) Be able to easily call the stylesheet
2) Be able to deploy without editing any source
3) Be able to see it work during development
We use the following code for this:
public String cssLink() {
if (urlForStilsett == null) {
urlForStilsett = getUrlForResource("nettskjema.css");
}
return urlForStilsett;
}
private String getUrlForResource(String resourceName) {
return
getApplication().resourceManager().urlForResourceNamed(resourceName,
null, null,
context().request());
}
-Kaj :)
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.