Re: CSS Confusion
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.