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

Getting the current form name


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

Hi

I have a component that is wrapped within a form.  I want this component to get the name of the form it is wrapped in.

My component currently has a method like this:

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 don't want to have to search the dom or have to give it an id or a name or anything like that.  I want it to be elegant and I thought the component could get the form name automatically using the code above.

Is this possible?

:-)

 _______________________________________________
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: "Ricardo J. Parada" <email@hidden>
  • Prev by Date: Mutiple wotaksd
  • Next by Date: Re: Getting the current form name
  • Previous by thread: Re: Mutiple wotaksd
  • Next by thread: Re: Getting the current form name
  • Index(es):
    • Date
    • Thread