Hello,
I've deployed on Tomcat 6.0.29 on Mac OS X 10.5.8 a simple internationalized 2.0.4 GWT application using Eclipse (equivalent to HelloGWT sample) which has a drop-down list to get the locales and replace the url depending on the choice.
It works fine when in development mode, either in Firefox or Safari.
When deployed to Tomcat, in Safari, the application has all its functionalities but the spinned wheel in the url field runs continuously as soon as the mouse pointer leaves the url field.
In Firefox 3.6.10, on the other hand, there is no such behaviour but it opens directly the greet dialog box where the user-agent etc are shown, as though there would have been a click on the button.
In both case, I cannot see where is the problem.
Here is the code I use to change the url:
languageBox.addChangeHandler(new ChangeHandler() {
@Override
public void onChange(ChangeEvent event) {
String languageName = languageBox.getValue(languageBox.getSelectedIndex());
UrlBuilder builder = Location.createUrlBuilder().setParameter("locale", languageName);
Window.Location.replace(builder.buildString());
}
});
Is there something I do wrong in here?
Thanks in advance for any hint.
Additional information
I use a simplePanel to wrap the list box so that I can then center it and the title of the application together. I wonder if it can be a problem on Safari:
RootPanel.get("applicationName").add(new Label(constants.helloGWT()));
...
// Here comes the definition of languageBox
...
final SimplePanel languagePanel = new SimplePanel();
languagePanel.add(languageBox);
languagePanel.addStyleName("languagePanel");
RootPanel.get("languagePanelContainer").add(languagePanel);
And then in the html page I have:
<div align="center">
<h1 id="applicationName"></h1>
<div id="languagePanelContainer"></div>
</div>
Any idea where I make an error here?
Thanks in advance for any answer.