Getting the current form name
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