on 10-02-2008 8:08 PM
I have a popup that I am using to enter some data. This data is validated in my button click event. I have a UIElement: MessageArea in my view. In the code I have the following code
public boolean validateData( )
{
//@@begin validateData()
boolean validReturn = true;
msgMgr.reportSuccess("hi");
}
//@@begin others
static IWDMessageManager msgMgr;
//@@end
When I run the code I get a java.lang.NullPointerException on the msgMgr.reportSuccess... line of code. If I comment out the msgMgr code then my code functions.
Shouldn't message usage in a popup behave the same as in a "regular" view?
Regards,
Diane
Hi,
Just instantiate your msgMgr in wdDoInit() once.
msgMgr = wdComponentAPI.getMessageManager();
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.