• 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: <td background=resource-reference ...>
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: <td background=resource-reference ...>


  • Subject: Re: <td background=resource-reference ...>
  • From: Sam Barnum <email@hidden>
  • Date: Tue, 21 Oct 2003 19:22:02 -0700

You'll want to add the image file to your project under the WebServer target, then use WOResourceManager to get the URL of the image file, and bind that to the background binding of your dynamic <td> cell.

Take a look at urlForResourceNamed
file:///Developer/Documentation/WebObjects/Reference/API/com/ webobjects/appserver/ WOResourceManager.html#urlForResourceNamed(java.lang.String, java.lang .String, com.webobjects.foundation.NSArray, com.webobjects.appserver .WORequest)


(wonder what the odds are that link will work?)

On Tuesday, October 21, 2003, at 05:23 PM, Gavin Eadie wrote:

I can never be sure I'm not overlooking something really simple but I'm trying to add a background image to a table cell:

   <TD BACKGROUND=... >

where the background image is a resource. I make the <TD dynamic, of course, and can use the "otherTag" binding to emit an absolute reference to the image, but that's not the WO way!

If it were to be just a plain image reference (WOImage), or I wanted the images' URL (WOResourceURL), the .wod would contain:

   file = "xxx.png";
   framework = "app";

but that file/framework combo isn't an option with genericContainer's bindings.

Any ideas, my friends? ... Gav
_______________________________________________
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: 
 ><td background=resource-reference ...> (From: Gavin Eadie <email@hidden>)

  • Prev by Date: NDA'd ADC Members - You Might Want to Phone Home...
  • Next by Date: Re: <td background=resource-reference ...>
  • Previous by thread: <td background=resource-reference ...>
  • Next by thread: NDA'd ADC Members - You Might Want to Phone Home...
  • Index(es):
    • Date
    • Thread