• 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
Re: Getting the current form name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the current form name


  • Subject: Re: Getting the current form name
  • From: "Ricardo J. Parada" <email@hidden>
  • Date: Sat, 30 May 2009 22:22:24 -0400


On May 30, 2009, at 9:38 PM, Ricardo J. Parada wrote:

public String formName() {
return "" + context().userInfoForKey("formName");
}

but it's currently returning "null" even though it is wrapped in a form.  I use want to use the form name to do some javacript magic.  :-)


I changed the code to this and now it works:

public String formName() {
return "" + context().userInfo().objectForKey("formName");
}

So maybe userInfoForKey() in the WOContext doesn't do what I thought it did.  :-)

Thanks,
Ricardo

 _______________________________________________
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

  • Follow-Ups:
    • Re: Getting the current form name
      • From: Mike Schrag <email@hidden>
References: 
 >Getting the current form name (From: "Ricardo J. Parada" <email@hidden>)

  • Prev by Date: Getting the current form name
  • Next by Date: .WO woes
  • Previous by thread: Getting the current form name
  • Next by thread: Re: Getting the current form name
  • Index(es):
    • Date
    • Thread