• 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: Basic Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Basic Question


  • Subject: Re: Basic Question
  • From: Paul Lynch <email@hidden>
  • Date: Tue, 21 Mar 2006 23:07:50 +0000


On 21 Mar 2006, at 21:12, Jeffrey Pearson wrote:

My question is a stupid one, but I don't seem to be able to find anything about it. I have an image I want to include on my page. In my old app, I have an images folder in my root folder that contain all of my images. I copied that folder into the root project folder of my webobject app. I used "file->add file" and selected the folder and added it to my web components folder. I then use a WOImage and converted it to a static object and selected the image file I wanted. In layout, it comes up fine, but when I build the project, it shows up as a broken link in the browser window.

So where am I going wrong?

WebServer Resources need to be installed in the doc root of your web server; I assume that by the above you meant that you added the images to the WebServer target? This is a separate build product. Your app will build to two parts: one containing the code, to be installed on your application server, and the other with the web server resource, to be installed in the doc root of your web server.



Other basic question:

I have a common header/footer across all pages using the include tag. Can I continue to use it or do I need to do something else?

If it is a server based include, then yes, you can continue to use it. Probably.


I would generally create a partial page component from the include (ie, a wo), and place that in all pages that needed it. Or almost. What I would really do is create a page wrapper component (one that contains the html/head/body parts), with a WOComponentContent where the page content would go, and use that on every page in my app. This approach can cut out a lot of repetitive layout html.

Paul

_______________________________________________
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


  • Follow-Ups:
    • Re: Basic Question
      • From: Jeffrey Pearson <email@hidden>
References: 
 >Relationship question (From: "Randy Wigginton" <email@hidden>)
 >Re: Relationship question (From: Ken Anderson <email@hidden>)
 >Basic Question (From: Jeffrey Pearson <email@hidden>)

  • Prev by Date: Re: help for Objective C
  • Next by Date: Re: Child EditingContext and fetches
  • Previous by thread: Basic Question
  • Next by thread: Re: Basic Question
  • Index(es):
    • Date
    • Thread