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