• 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: Jonathan Rochkind <email@hidden>
  • Date: Thu, 4 Mar 2004 13:45:30 -0600

I'm not sure what the three ways are, but I'd think any decent way would meet those goals.

What I do, is I put the style sheet in "Web Server Resources" for a project or framework. I put the HTML link to the stylesheet in with a WOGenericElement (or WOGenericContainer, I forget the proper HTML), with it's URL coming from a method in the component. The method looks up the URL with the WOResourceManager. [WOApplication.application().resourceManager()].

Really, I encapsulate all that in a re-useable component, so I can just bind "framework" and "filename", and get the link to the stylesheet. It's an easy reusable component to write.

I think that meets all your goals. Works fine for me.
[PS: Personally I prefer it when people pick a mailing list and send their question to just one, since I read both. Instead of sending to both. But that's just my personal preference, I guess.]
--Jonathan


At 1:26 PM -0600 3/4/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

Thanks,
James Cicenia

_______________________________________________
WebObjects-dev mailing list
email@hidden
http://www.omnigroup.com/mailman/listinfo/webobjects-dev
_______________________________________________
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: CSS Confusion
  • Next by Date: Re: CSS Confusion
  • Previous by thread: Re: CSS Confusion
  • Next by thread: Re: CSS Confusion
  • Index(es):
    • Date
    • Thread