Making a Vaadin Link permanent

Hi all,

is there a way to make the Vaadin Links permanent even after a server restart? I’m using Vaadin 8.

Thanks

Can you explain more precisely what you mean by permanent here? With Navigator class you can register Views with urls. Those are by nature static, i.e. according to my understanding permanent, so you can e.g. bookmark the url to specific view.

Sorry for the late response. I was refering to the Vaadin Link class to refer to a File Resource. As far as i know they are recreated whenever you create a new Link for the ressource or the server restarts.

I think in that case you will need a custom Servlet that generates the resource based on the request URL. Something like this: https://stackoverflow.com/a/14281064/3608089

Thank you, i will take a look at that.