Re: using CSS with WO
Re: using CSS with WO
- Subject: Re: using CSS with WO
- From: LD <email@hidden>
- Date: Sun, 31 Jul 2005 17:53:41 +1000
Hi there,
On 30/07/2005, at 11:30 PM, Kushnir Gennady wrote:
I'm working in pair with designer. I receive html coded pages from
him and then add to them dynamic content. But he uses CSS for
formatting and WO does not render them correctly.
I can not add CSS into project so that pages (components) could
link to it. So I had to put CSS file separately on web server and
make static link to it.
Seems like a reasonable approach.
Also when styles are described inside HTML file they are omitted as
Adaptor treats them as just comments and does not send them to web
server (read user's browser).
Yes, by default I think, WOApplication suppresses comments when
generating responses. You can adjust this via:
public Application() {
<...>
setIncludeCommentsInResponse(true);
<...>
}
Someone else may be able to help with whether or not there's a
similar option that would enable you to set this for a specific
component or not. I couldn't see it, however...
is there any manual of correctly using CSS in WebObjects?
Not that I know of, but the basic options seem to be:
a) place them on the web-server and link to them as you have. e.g., "/
css/main.css"
b) include in the "Web Server Resources" group: i.e., Anything that
is intended to be available to the client such as images can go in
this group. Utilise the dynamic element WOResourceURL.
c) similar to 'b', placing them in a framework (again in the Web
Server Resources directory) and include the framework...
d) for including in-line css, see above.
with regards,
--
LD
_______________________________________________
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