Re: CSS link problem
Re: CSS link problem
- Subject: Re: CSS link problem
- From: Randall Perry <email@hidden>
- Date: Tue, 27 Apr 2004 09:10:36 -0400
on 4/26/04 6:42 PM, Jonathan Rochkind at email@hidden wrote:
> What did you want? That is exactly what WOResourceURL does,
Now I know :J)
> print
> out the URL to a resource. So if that's not exactly what you wanted,
> what did you want? The code as you show it seems like it should work
> to me, although putting the <WEBOBJECT> tag inside attribute quotes
> like that is considered bad form by some (including the WOBuilder
> validator).
>
>
> Another way to do this, perhaps what you want, is:
> .html:
> <WEBOBJECT NAME=StylesheetLink1>
>
> .wod:
> StylesheetLink1: WOGenericElement {
> elementName = "LINK";
> rel = "stylesheet";
> type = "text/css";
> name = "test"; //unneccesary
> href = stylesheetHref;
> }
>
> .java:
> public String stylesheetHref() {
> WOResourceManager rm = application().resourceManager();
>
> return rm.urlForResourceNamed("nameOfStylesheet.css",
> "FrameworkOrNull", null, context().request());
> }
>
Great, thanks.
--
Randall Perry
sysTame
Xserve Web Hosting/Co-location
Website Development/Promotion
Mac Consulting/Sales
http://www.systame.com/
_______________________________________________
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.