• 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: passing data to wrapper component
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: passing data to wrapper component


  • Subject: Re: passing data to wrapper component
  • From: Deirdre Saoirse Moen <email@hidden>
  • Date: Tue, 17 Aug 2004 16:35:28 -0700 (PDT)

On Tue, 17 Aug 2004, William Norris wrote:

> as per suggestions in various apple documents, I've created a
> "pageWrapper" component that loads my basic header and footer for all
> of my pages.  However, sometimes I want to customize part of the
> header for a particular page... perhaps include an additional
> stylesheet, or change the page title.  I know I can setup variables
> for these in the pageWrapper component, but how do i then edit those
> variables from the including components?  The pageWrapper component is
> not explicitly instantiated, so I'm not really sure how to reference
> it.

I don't know how other people do it, but my approach was to create a
header component and a footer component and include those. So it's kind of
the opposite approach.

Then I simply define variables for page-specific stuff in the class that
I'm rendering (e.g. for ListManuscripts, the title is set to "List
Manuscripts").

The header simply prints that variable. It does harf if it's not set,
though.

Anyhow, if you'd like some sample code, I'd be happy to send some along.
:)

--
_Deirdre  web: http://deirdre.net        blog: http://deirdre.org/blog/
yarn: http://fuzzyorange.com    cat's blog: http://fuzzyorange.com/vsd/
"Memes are a hoax! Pass it on!"
_______________________________________________
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: 
 >passing data to wrapper component (From: William Norris <email@hidden>)

  • Prev by Date: passing data to wrapper component
  • Next by Date: Re: passing data to wrapper component
  • Previous by thread: passing data to wrapper component
  • Next by thread: Re: passing data to wrapper component
  • Index(es):
    • Date
    • Thread