• 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
Best way to perform an action from a string variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Display Groups
  • Next by Date: Developer Preview Vs. Boxed-Product
  • Previous by thread: WODisplayGroup display list repetition
  • Next by thread: Developer Preview Vs. Boxed-Product
  • Index(es):
    • Date
    • Thread