Re: Many pages or one page?
Re: Many pages or one page?
- Subject: Re: Many pages or one page?
- From: email@hidden (Anjo Krank)
- Date: Sat, 31 May 2003 12:00:28 +0200
- Xx-reply-to: email@hidden
Am Samstag, 31.05.03 um 23:47 Uhr schrieb Alexey Manannikov:
Thank you all to help me choose right way with many pages.
I need to make at least 7 pages with additional conditionals in some
of them.
And I see how it is easier to make them in separate components, not in
VERY BIG one :)
You could make 7 sub components and have one "wizard" component embed
them via a WOSwitchComponent - which should make the most sense if you
don't want your components have knowledge of the flow...with your
current approach, when you reorder your flow, you need to change a lot
of stuff, depending on where you decide to put things.
My take would be a reusable non-synching "WizardComponent" which takes
a "componentNames" array, bind the "currentComponentName" and
everything else you need to the switch comp and have all the (also
non-synching) subcomponent get their stuff via "^" bindings.
Then things like "next", "prev", "start", "end", "skip two steps, then
go back one:)=", "This is step 2 of 7, next is Foo" etc. should be
pretty trivial to do.
Cheers, Anjo
_______________________________________________
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.