Hi Theodore,
It seems that it also works with a WOString within the <head> tag:
<head>
<webobject name = "cssLink"/>
</head>
cssLink : WOString {
value = cssLink;
escapeHTML = false;
}
public String getCssLink() {
WOResourceManager res = application().resourceManager();
return "<link rel=\"stylesheet\" href=\"" +
res.urlForResourceNamed("Messages.css", null, null, getRequest()) + "\"
type=\"text/css\" />";
}
It should be possible too, to read the content of Messages.css with the
WOResourceManager and put the bytes into the WOString value together
with a <style> tag. Webobjects seems to be pretty cool :-)
Best regards
Andre
Am 2017-10-04 15:35, schrieb Theodore Petrosky:
here is a complete example:
<wo:ERXStyleSheet filename = "calendarFix.css" framework = "app"
media = "screen" />
On Oct 4, 2017, at 9:13 AM, André Rothe
<andre.ro...@zks.uni-leipzig.de> wrote:
Hi,
I have created a CSS file within the WebServerResources folder of my
project. How I can add it as a static link to the <head> tag of my
component page? How is the relative path, or should I use the
WOResourceManager to set the path for a WOxyz component?
<head>
<link rel="stylesheet" type="text/css" href="messages.css">
</head>
Best regards
Andre
--
UNIVERSITÄT LEIPZIG
Medizinische Fakultät
Zentrum für Klinische Studien Leipzig – KKS
André Rothe
CIO
Härtelstr. 16-18, 04107 Leipzig
Tel: 0341/ 97 16118
Fax: 0341/ 97 16189
WWW: http://www.zks.uni-leipzig.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
This email sent to tedp...@yahoo.com
.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/andre.rothe%40phosco.info
This email sent to andre.ro...@phosco.info
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com