Hi Shi, Both Dean's comments are good advice IMO in principle - I think you definitely need to rethink your approach to this. To help out with the specifics of your case is a little tricky because unfortunately it is still very unclear exactly what you are trying to achieve.
OK: > If in Login clicking on the button loginButton I see no ClickListener attached to loginButton. So if you click it nothing will happen. What is supposed to happen when you click this button? > want to call another Widget (perhaps in this widget make a call to another), what "other widget" do you want to call? can you be specific about this. Once we know this we can show you how to use the Observer pattern to do it in your case and get you on right path > how do I tell him to clear all there was in the panel except the menu when > click on > HOME, Firstly, what is "him"? Secondly, we started clicking the the loginButton, but now we have moved on to selecting the HOME menu option which executes the cmd Command which clears vpanel2. I cannot figure out what the connection is here between clicking the loginButton and running the cmd command since there is no code that connects them. > so delete the contents of vPanel2 and keep intact vPanel with the menu, This implies that there might already be some contents in vPanel2 before the user has actually selected the LOGIN menu option and successfully logged in, and when they do this content should be cleared. Can you explain briefly what that content might be, its purpose etc? regards gregor > It's for this reason that I thought I had to instantiate MenuHome in > Login, just to be able to use the clear () when I was comfortable, but > know that this does not work and I do not know what else to do so. > > Dean S.Jones I understand what you have said but are not able to apply > it to my example > > I hope that I made you understand, I apologize for my bad English... > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
