Skip to Content
avatar image
Former Member

Message in Popup

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;
 //@@begin others
  static IWDMessageManager msgMgr;

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?



Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Oct 02, 2008 at 07:13 PM


    Just instantiate your msgMgr in wdDoInit() once.

    msgMgr = wdComponentAPI.getMessageManager();



    Add comment
    10|10000 characters needed characters exceeded