I let the Constructor set a <validPage> boolean.

                Discuss discussPage = (Discuss)pageWithName("Discuss");
return ( discussPage.validPage() ? (WOComponent)discussPage : gotoAdmin() );

On Sep 4, 2007, at 6:22 PM, Chuck Hill wrote:

On Sep 4, 2007, at 5:41 PM, Baiss Eric Magnusson wrote:


I'm in the Constructor of a WOComponent sub-class and I realize I have to be in another page.

I invoke a new <pageWithName>, but then what?

Change your design, know before. Maybe move the decision to a "page flow" class.

Chuck

--
Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to