Vaadin 25: Starter

Does anyone still use the starter?

We still actively support it, as I used it yesterday to create a Vaadin 25 project, and there was something deprecated in every class.

MainLayout.class used still StreamResource and Avatar#setImageResource deprecated since 24.8 is removal.

StreamResource resource = new StreamResource("profile-pic",
    () -> new ByteArrayInputStream(user.getProfilePicture()));
avatar.setImageResource(resource);

I changed it to:

avatar.setImageHandler(DownloadHandler.fromInputStream(
    _ -> new DownloadResponse(new ByteArrayInputStream(user.getProfilePicture()), "profile-pic", "image/jpeg", -1)));

Application.class used still Theme deprecated since 25.0.

These are just two examples, and I’m sitting here wondering if this is still being used. I create a new project and it starts with warnings and uses sections that are to be removed. At first, I thought I had the wrong version, but I can only select 25.0 and 25.1 (pre).

Did I miss something when creating it?

Hi, thanks for your feedback. Yes, you are right, maintaining Start it’s still our responsibility but it got lower priority due to Vaadin Copilot tool which we are heavily working on.

We are discussing internally how we can overcome current issues and limitations related to Start view templates getting behind release cycle.

Another major feature which has been raised by community is support for new Aura theme in Playground projects.

We hope that above issues will be addressed in nearby future.

Please create issue for this finding here → GitHub - vaadin/starters: Issue repository for all the starter projects in https://vaadin.com/start

I have created an issue as requested:

I don’t want to complain, as the starter can be used free of charge. Is it really a good decision to set the priority in such a way that people have a bad start with Vaddin?

We are doing our best to make first impression as positive as possible. Start related issues will be prioritized in upcoming weeks. Thank you for creating issue!

1 Like