Verifying and ExternalResource loaded

I am loading an Image in a customcomponent using an ExternalResource.
Sometimes the images fails to load and displays a broken box.
Is there a way to test for this failure … could not find and doc or an exmaple.

Thanks,
Greg

An externalResource injects a pure HTML src to the DOM, which means that it cannot be accessed / tested from the server directly. Some JS-hack might work but will require extending whatever component you are using. Otherwise, your only option is to test the connection on the server using Java before you set the URL to the component. Not a very good alternative, I admit.

Thanks Thomas! Yes, that is unfortunate. If an image failed to load the UI looks like crap.