Your togglexxxx() methods should be being called. Check with debugger.
Problem is most likely with what you are doing in the togglexxx()
methods.
On Nov 30, 1:01 pm, tapan <[EMAIL PROTECTED]> wrote:
> here is the source
>
> Button beg = new Button("Beginner");
> Button inter = new Button("Intermediate");
> Button pro =new Button("Expert");
>
> RootPanel rootPanel = RootPanel.get("beginner");
> rootPanel.add(beg);
> rootPanel = RootPanel.get("intermediate");
> rootPanel.add(inter);
> rootPanel = RootPanel.get("pro");
> rootPanel.add(pro);
>
> beg.addClickListener(new ClickListener(){
> public void onClick(Widget sender) {
> togglebeg();
> }
> });
> inter.addClickListener(new ClickListener(){
> public void onClick(Widget sender) {
> toggleinter();
> }
> });
> pro.addClickListener(new ClickListener(){
> public void onClick(Widget sender) {
> togglepro();
> }
> });
>
> On Nov 29, 1:55 pm, Lothar Kimmeringer <[EMAIL PROTECTED]> wrote:
>
> > tapan schrieb:
>
> > > I have 3 buttons each having their own ClickListener . The problem is
> > > that after clicking once on a button the ClickListener does not work
> > > second time until the page has been refreshed. How can i correct this
> > > error without refreshing the page every time.
>
> > Some source showing the problem should help. The effect you describe
> > I never had, so I'm quite sure that you do something wrong. Most
> > likely there is an exception happening in the code being executed
> > inside the listener. This stops the "execution" of the application
> > and needs the reload of the page.
>
> > Regards, Lothar
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---