• 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: Web page design in WO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Web page design in WO


  • Subject: Re: Web page design in WO
  • From: Richard W Williams <email@hidden>
  • Date: Thu, 17 Feb 2005 15:42:02 -0500

Kevin,

This is the same method that I first used to get CSS to work at all. I was hoping that the absolute address method, or something like it, would work for this too. Since that isn't the case, I'll use your method just to be consistent.

Thanks
Dick

On Feb 17, 2005, at 3:23 PM, Kevin Xiaowen Ren wrote:

in the <style>, you have to have some code like this
#back1 {
position:absolute;
top:63px;
left:0;
width:802px;
height:280px;
background-image:url(<WEBOBJECT NAME=BackgroundImageURL1></WEBOBJECT>);
background-repeat:repeat-x;
z-index:1;
}


in wod file

BackgroundImageURL1: WOString
{
        value=getBGImageURL1;
}


in java code:
public String getBGImageURL1(){
return WOApplication.application().resourceManager().urlForResourceNamed("back 1.gif", null, null, this.context().request());
}



good luck!

kevin

At 14:34 17/02/2005 -0500, you wrote:
Hi,
I tried this with my external CSS and it worked great.  However, the
CSS contains a reference to a "backgroung-image" that never shows up.
I tried the same technique using absolute paths, but that didn't seem
to work.  Any idea?
Dick


_______________________________________________ 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: 
 >Re: Web page design in WO (From: Hunter Hillegas <email@hidden>)
 >Web page design in WO (From: Florijan Stamenkovic <email@hidden>)
 >Re: Web page design in WO (From: Kevin Xiaowen Ren <email@hidden>)

  • Prev by Date: Re: attempt to assign value to unknown key
  • Next by Date: Re: Page form or SubComponent form Design Pattern?
  • Previous by thread: Re: Web page design in WO
  • Next by thread: Re: Tests Multi-Request with JMeter
  • Index(es):
    • Date
    • Thread