• 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: setting td background
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting td background


  • Subject: Re: setting td background
  • From: Helge Städtler <email@hidden>
  • Date: Thu, 14 Jul 2005 20:58:58 +0200

the basic answer would be: RTFM.

but its basically not that easy to extract this from the manual. ;-)

the better answer would be use some CSS for stuff like this. its the way
something like that is done today.

the answer which solves your problem would be:

use a method like this:

    public String urlForResourceWithFilenameInFramework( String filename,
String framework ) {
        return
WOApplication.application().resourceManager().urlForResourceNamed( filename,
framework, null, context().request() );
    }

then you write your method:

public String myImage() {
    return urlForResourceWithFilenameInFramework( ...parameters... )
}

supply some parameters, i would suggest filename = "background.gif" and
framework = "app"

and then click in wobuilder on "make dynamic" for your tablecell and at the
binding background you bind "myImage". ready. but hey this is clearly 20th
century. use css-files guy!

for including a css-file the above way might on the other way be a valid
answer too. ;-)

regards,
helge


Am 14.07.2005 20:23 Uhr schrieb "email@hidden" unter
<email@hidden> / On 14.07.2005 20:23 Uhr "email@hidden" wrote
using address <email@hidden>:

> please don't mind my basic questions, i'm trying to do a simple thing as
> setting the back ground of <td background="background.gif></td>. i see the
> effects in the layout view but not when i run the application. can anybody
> suggest how it can be done.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >setting td background (From: email@hidden)

  • Prev by Date: setting td background
  • Next by Date: WO article in MDJ
  • Previous by thread: setting td background
  • Next by thread: WO article in MDJ
  • Index(es):
    • Date
    • Thread