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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]