So what you are saying is that you need a way for the menu to detect which user/user group is looking at the menu.
As you are already saying you have user groups it should not be to hard to inform the menu about the user group that is trying to open it. Once the menu knows which group is trying to open it it can use internal hard coded or externally read logic to decide what fields to render and how to render them, what events to attach to the elements and so on. I would simply hand the menu a variable/object that identifies the user group accessing it. Then the menu logic can deal with the rest. I would though use an external location to store the logic for the menu so you can easily update it should you need to add a new group in the future. I hope that helps a bit... On Tue, Aug 3, 2010 at 4:28 PM, Magnus <alpineblas...@googlemail.com> wrote: > Thank you, > > but shouldn't GWT itself provide a mechanism to disable menu items? > > Using an additional library is not the problem for me, but using an > additional library because of such a small functionality that should > be present in any menu implementation is a problem for me. As a > consequence I would end up in about a dozent libs... > > Isn't there another solution? > > Why is this missing? > > Thanks > Magnus > > On Aug 1, 10:56 pm, Alan Hadsell <ahads...@gmail.com> wrote: > > On Aug 1, 12:25 pm, Magnus <alpineblas...@googlemail.com> wrote: > > > > > Hi, > > > > > I have a MenuBar with MenuItems, which I would like to selectively > > > enable for defined user groups. But how can I enable/disable menu > > > items? > > > > Take a look at gwtlib:http://code.google.com/p/gwtlib/. It has > > menubars > > and menu items that can be enabled and disabled. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.