• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CSS link problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: CSS link problem (From: Jonathan Rochkind <email@hidden>)

  • Prev by Date: WOToOneRelationShip selected value
  • Next by Date: Re: CSS link problem
  • Previous by thread: Re: CSS link problem
  • Next by thread: RE: CSS link problem
  • Index(es):
    • Date
    • Thread