Best way to perform an action from a string variable
Best way to perform an action from a string variable
- Subject: Best way to perform an action from a string variable
- From: Erwin <email@hidden>
- Date: Fri, 23 Jul 2004 19:08:04 +0200
What's the best way (neat one) to have a component performing an action
based on a String variable.
i got it from : itemActionKeyString =
(String)anItem.valueForKey("action");
i need to display the next page based on itemActionKeyString
and i would like to avoid an if or case cascade
if I write this :
public WOComponent actionA() {
aPageType nextPage = (aPageType)
pageWithName("itemActionKeyString");
return nextPage;
}
in this case I have just one page type component and i need different
page types...
_______________________________________________
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.