I am experiencing rather strange problem … The code below (that set partNameGenerator at grid column) works fine in the development mode but does not work in production mode. Styles are available but just not added to the corresponding columns. Again, everything works just fine in development mode …
`grid.addColumn("status") .setHeader("Status").setAutoWidth(false).setSortable(false)
.setPartNameGenerator(r ->
switch (r.getStatus()) {
case ERROR -> "error";
case WARNING -> "warning";
default -> "success";
}
);`
partNameGenerator also does not work being set at grid level … I would appreciate any help. Vaadin version in 24.1.12
Well, it looks like Vaadin just can not find my theme … I am using Vaadin gradle plugin and Spring boot jar. The theme was packaged here in boot jar: \META-INF\VAADIN\webapp\VAADIN\static\themes\my-theme
In the configuration it is referenced just as @Theme(value = “my-theme”). Could you please advice what’s wrong with that?
The theme was packaged here in boot jar: \META-INF\VAADIN\webapp\VAADIN\static\themes\my-theme
To me the path is wrong, can you share your project structure?
I tried to package the theme in some other jar, in the recommended path (resources/META-INF/resources) but this does not help … Though theme was not packaged in \META-INF\VAADIN\webapp\VAADIN\static this time. Yes, rules are defined in styles.css.