Friday, February 28, 2014

How do disable and/or hide a MenuItem ????

I am using GWT 2.5.1

I have been struggling with this for hours now. How do you disable and/or hide a MenuItem in GWT.

menuItem.setEnabled(false); // DOES NOT WORK !!!
menuItem.setVisible(false); // DOES NOT WORK !!!
UIObject.setVisible(menuItem.getElement(), false); // DOES NOT WORK !!!

Why ?

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment