Embedded obj = new Embedded();
obj.setType(Embedded.TYPE_BROWSER);
obj.setsource(“url”)
is it possible to detect whether “url” is reachable or not?
how to detect this?
https://vaadin.com/forum/-/message_boards/view_message/1092203
Embedded obj = new Embedded();
obj.setType(Embedded.TYPE_BROWSER);
obj.setsource(“url”)
is it possible to detect whether “url” is reachable or not?
how to detect this?
https://vaadin.com/forum/-/message_boards/view_message/1092203
Hi,
I’m not aware of such a feature being supported by the Embedded component.
However, you could try to connect to the URL first from the server side code, using e.g.
HttpURLConnection
and show either the Embedded or an error message to the user based on the response you get (or do not get).
-Tepi
thanks. I will try it out.