I recently experienced an issue when upgrading from Vaadin 6.4.8 → 6.5.1, sharing the solution here.
I embed my vaadin application in a webpage, according to the technique shown in the multiapp.html sample code. After vaadin upgrade this time the vaadin application was not loading correctly into my webpage. My application uses windows, and I found that after upgrade the main window was being loading inside the webpage, rather than the correct child window.
Previously my JavaScript in the webpage to embed my Vaadin application looked like this:
<script type="text/javascript">
var vaadin = {
vaadinConfigurations: {
'mywebapp' :{
[color=#F31414]
appUri:'/a',
pathInfo: '/b',
[/color]
themeUri: '/a/VAADIN/themes/mytheme',
versionInfo : {vaadinVersion:"6.0.0-INTERNAL-NONVERSIONED-DEBUG-BUILD",applicationVersion:"NONVERSIONED"}
}
}};
</script>
After upgrade I found this no longer worked. The main window “a” was loaded instead of the child window “b”. The Window.getWindow() method was not being called for the “b” window.
This seems to have fixed it:
<script type="text/javascript">
var vaadin = {
vaadinConfigurations: {
'mywebapp' :{
[color=#F31414]
appUri:'/a/b',
pathInfo: '',
[/color]
themeUri: '/a/VAADIN/themes/mytheme',
versionInfo : {vaadinVersion:"6.0.0-INTERNAL-NONVERSIONED-DEBUG-BUILD",applicationVersion:"NONVERSIONED"}
}
}};
</script>
Seems like pathInfo is no longer working? Anyone have thoughts on whether this is expected behaviour or a bug?
Thanks
/Craig