Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Vaadin Spreadsheet Rendering Issue

Fran McHugh
7 years ago Sep 25, 2015 4:49pm

Does anyone know why a simple spreadsheet like this:
  Spreadsheet spreadsheet;
  spreadsheet = new Spreadsheet();
  spreadsheet.createCell(0, 0, "Test");
  spreadsheet.createCell(1, 0, 6);
  spreadsheet.createCell(1, 1, 7);

Would render as the attached images in my browser.  Each image is a different scroll position in the window.

Any help or clues would be greatly appreciated!

Guillermo Alvarez
7 years ago Sep 28, 2015 10:57am

Hi Fran,

How did you create the project? Are you using maven? ivy and eclipse plugin?

I think the issue is that theme wasn't updated. There should be a generated addons.scss file with the spreadsheet.scss import and include

If you're using maven you can solve it by running

mvn vaadin:update-theme

A project created with the latest version of the archetype (like the one in the tutorial) should do this when compiling (vaadin:compile) , but you might need to do it manually with older versions.

If you're using Eclipse with the Vaadin plugin, there's a bug that sometimes messes up automatic addon theme scanning, which leaves your automatically generated addons.scss without spreadsheet.scss import and include. The workaround for that is to go to project preferences, to the Vaadin page, and check the 'Suspend automatic addon theme scanning', click 'Apply', uncheck again, and click 'Ok'. That should get the the addons.scss to update properly.

Hope this helps!

Fran McHugh
7 years ago Sep 28, 2015 4:17pm
Guillermo Alvarez
7 years ago Sep 29, 2015 8:43am