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