• 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: Need some help with WOComponentContent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need some help with WOComponentContent


  • Subject: Re: Need some help with WOComponentContent
  • From: Mike Schrag <email@hidden>
  • Date: Mon, 19 Feb 2007 14:50:10 -0500

Project Wonder has "ERXWOComponentContent" which is conceptually like WOComponentContent except that it allows multiple named templates to be used rather than a single one. It's a LITTLE mind-blowing at first (in the same way WOComponentContent itself is), but it is one way to do what you're looking for.

ms

On Feb 19, 2007, at 2:14 PM, Kevin Windham wrote:


On Feb 19, 2007, at 12:57 PM, Jerry W. Walker wrote:

When you invoke Wrappee, it calls Wrapper and hands over its content (that is, the content enclosed by the Wrappee's custom Wrapper component) so that Wrapper can render its own content and insert Wrappee's content in the ONE place on Wrapper that you put the WOComponentContent.

If you do that, then any page you invoke in which you've embedded Wrapper will render Wrapper's content wrapped around its own content. In that way, 20 different Wrappees can each call Wrapper to have their content wrapped by the headers, footers, etc.

Given that situation, it makes no sense to put more than a single WOComponentContent element inside Wrapper.

Thanks Jerry. That all makes sense and exactly describes what I am seeing. Now that I know I can't quite achieve what I want with the wrapper/wrappee paradigm, what would be a good way to achieve my goal. Here is a restatement of what I would like to do.


I have a page layout that essentially has two menus. There is a main nav bar in the header of the page on the left side that consists of about six buttons. This will show on every page and makes for a perfect wrapper/wrappee scenario. The trick is that at the bottom of this header there is another menu that is two levels and changes based on which section of the site we're in. I'll try to draw this out in ASCII.

There will always be the header section with the six buttons, and the section navigation bars. However the section navigation bars will change based on page content. What would be a good way to handle this scenario? Part of the problem is that the navigation bars are table cells and if I pull them out and just stick them in each page content area the table would need to be redesigned along with some of the graphics probably.

Thanks,
Kevin

+------+-------------------------------------------------------------+
| 1 | |
+------+ |
| 2 | |
+------+ |
| 3 | |
+------+ Header Graphics |
| 4 | |
+------+ |
| 5 | |
+------+ |
| 6 | |
+------+-------------------------------------------------------------+
| Section Navigation Level 1 |
+--------------------------------------------------------------------+
| Section Navigation Level 2 |
+--------------------------------------------------------------------+
| |
| Page content |
| |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mdimension.com


This email sent to email@hidden


_______________________________________________
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: 
 >Need some help with WOComponentContent (From: Kevin Windham <email@hidden>)
 >Re: Need some help with WOComponentContent (From: "Jerry W. Walker" <email@hidden>)
 >Re: Need some help with WOComponentContent (From: Kevin Windham <email@hidden>)

  • Prev by Date: Re: Need some help with WOComponentContent
  • Next by Date: Re: WebObjects 5.3.3 released
  • Previous by thread: Re: Need some help with WOComponentContent
  • Next by thread: Debug code in a framework
  • Index(es):
    • Date
    • Thread