• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CSS Confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >CSS Confusion (From: James Cicenia <email@hidden>)

  • Prev by Date: Re: Starting out
  • Next by Date: refreshes refetched objects: effects on performance?
  • Previous by thread: Re: CSS Confusion
  • Next by thread: refreshes refetched objects: effects on performance?
  • Index(es):
    • Date
    • Thread