Hello;
<link rel="stylesheet" href="./MyApp.woa/Contents/WebServerResources/
stylesheets/style.css" />
Create a method on your component like this;
public String getStyleUrl()
{
WOResourceManager rm =
WOApplication.application().resourceManager();
return
rm.urlForResourceNamed("style.css",null,null,context().request());
}
Then on your component template;
<webobject name="StyleGenericElement"/>
In the bindings;
StyleGenericElement : WOGenericElement {
elementName = "link";
rel = "stylesheet";
href = styleUrl;
}
cheers.
___
Andrew Lindesay
www.lindesay.co.nz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]