-
-
Notifications
You must be signed in to change notification settings - Fork 3
Description
I want to restore an image (URI) into the signature Pad.
First I store the image into a string by pressing a button:
btnStore.addClickListener(e->{
if (signature != null && !signature.isEmpty())
{
img = signature.getImageURI();
_log.debug("Storing: "+img.length());
}
});
Next I clear the signature pad and then I want to set the image Uri back into the SignaturePad by pressing the restore button:
btnRestore.addClickListener(e->{
if (signature != null)
{
if (!FMZStringUtils.isEmptyStr(img))
{
_log.debug("Restoring: "+img.length());
signature.setImage(img);
}
}
});
The signature does not show the content.
I would expect the content to be restored!
This is happening using Vaadin 23.3.8 running on my dev machine (Windows 10) using tomcat as server.
I'm using version 3.1.0