There are something wrong about Firefox (or Google Chrome) and Vaadin ?


first
- sorry about my english :slight_smile:

my environment is
Firefox 6.0.2
,
vaadin 6.6.6

When I run bellow source code


import com.vaadin.Application;
import com.vaadin.ui.*;
import com.vaadin.ui.Button.ClickEvent;

public class AaApplication extends Application {
	Button b;
	@Override
	public void init() {
		Window mainWindow = new Window("Aa Application");
		Label label = new Label("Hello Vaadin user");
		mainWindow.addComponent(label);
		setMainWindow(mainWindow);
		System.out.println("AA > " + this);
		b = new Button("click me");
		b.addListener(new Button.ClickListener() {
			
			@Override
			public void buttonClick(ClickEvent event) {
				b.setCaption("Thank you.");
			}
		});
		
		mainWindow.addComponent(b);
	}

}

and do this steps

  1. open Firefox
  2. open application url
  3. you should see Label with “Hello Vaadin user” and Button with caption “Click me”
  4. open another tab and enter url of application again
  5. in this tab (step no.4 ) you should Label and Button same with step no.3
  6. click on button “Click me” then label change to “Thank you”
  7. back to first tab (step no.3) , there are Label with “Hello Vaadin user” and Button with caption “Click me” , Then refresh this tab ** the label of button change to “Thank you” !


The question is there are soming wrong with Firefox ?

because when I use Chrome instead of Firefox and do above step from 1 - 6 , then refresh tab at step no.7 , the button caption will not change until I click that button

and
on firefox
, when I open first Tab
the line ** System.out.println("AA > " + this); ** print out the application instance “Application@384e57ba”
then open new Tab , it does not print out anything. so the instance of this application created once for all tab ?

but when I do the same thing
on Chrome

the line ** System.out.println("AA > " + this); ** print out the application instance “Application@384e57ba” “Application@48b49e4” … for all tabs that I opened.


Thank you

after posted this question , I found this

https://vaadin.com/web/joonas/wiki/-/wiki/Main/Supporting%20Multible%20Tabs

Thanks :slight_smile: