Re: WOSwitchComponent?
Re: WOSwitchComponent?
- Subject: Re: WOSwitchComponent?
- From: Gavin Eadie <email@hidden>
- Date: Sun, 13 Nov 2005 14:17:36 -0500
At 10:20 AM -0800 11/13/05, Chuck Hill wrote:
It can be hard to wrap your mind around it, though.
... yes, it takes a little while till the brain snaps into place, but
it's very powerful. Here's a tiny example to make it more real.
Note that the Wrap component carries the standard look and feel
of your page 'template' and contains a header, footer and menu (just
for the sake of having something a little more complex) plus the
WOComponentContent in the place where you want all the non templated
content to appear. Main and More carry that content and refer to the
Wrap, this way, whatever HTML that More and Main render will appear
in the WOComponentContent place in Wrap. Final note: ONLY Wrap is a
full page, ALL the other components are partial, so any HTML headers
that you want to use on every page only need to be in Wrap ... GavAttachment:
%WOComponentContentDemo.zip
Description: application/applefile
Attachment:
WOComponentContentDemo.zip
Description: Binary data
_______________________________________________
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