1

There's a way to show a notification message in smartgwt similar to the ones provided by Vaadin

PD: Solution given in another stackoverflow question for GWT doesn't seems to work correctly in smartgwt.

Community
  • 1
  • 1
lujop
  • 13,504
  • 9
  • 62
  • 95
  • The solution provided by your link should work with SmartGWT. Why it's not working ? As far as I know, there is no native solution for that. SmartGWT offers the possibility to achieve that, post some code so we could be able to help you. – Jean-Michel Garcia May 14 '12 at 12:09
  • At least in an application that has smartgwt windows opened it doesn't appears in the top. – lujop May 14 '12 at 15:53
  • Post sample code @lujop. can't help you otherwise. – Jean-Michel Garcia May 14 '12 at 15:55

1 Answers1

1

The problem with PD suggested solution link is the zindex. SmartGWT uses high zindex values to display it's components.

The solution is to manually increment zindex of the popup in show:

public void show(int delayMilliseconds) {
    show();
    DOM.setIntStyleAttribute(getElement(), "zIndex", 1000000);
    startDelayedHide(delayMilliseconds);
}
Community
  • 1
  • 1
lujop
  • 13,504
  • 9
  • 62
  • 95