Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 month ago
Alert Vaadin al seleccionar fecha
Hola a todos, en mi aplicacion deseo cambiar un mensaje de alerta en un campo tipo Date para seleccionar una fecha, al ingresar caracteres tipo string me muestra el mensaje de Date Format not Reconized y deseo cambiar ese mensaje a uno en español, alguien podria ayudarme?, gracias.
Last updated on
https://vaadin.com/vaadin-documentation-portlet/framework/components/components-datefield.html
o bien
// Create a date field with a custom error message for invalid format
PopupDateField date = new PopupDateField("My Date") {
@Override
protected Date handleUnparsableDateString(String dateString)
throws Property.ConversionException {
// Have a notification for the error
Notification.show( "Your date needs two slashes", Notification.TYPE_WARNING_MESSAGE);
// A failure must always also throw an exception
throw new Property.ConversionException("Bad date");
}
};
Last updated on
You cannot reply to this thread.