edvin
03/01/2017, 6:41 AMedvin
03/01/2017, 6:42 AMedvin
03/01/2017, 6:42 AMpaddingAll = 15
or something inside the form.edvin
03/01/2017, 6:44 AMval passwordEntered = SimpleStringProperty("")
should be inside the openInternalWindow
builder, right now it is captured by the lambda and reused, so if you get the lock screen twice, it might contain the prior value you entered. And you don't need to add ""
to SimpleStringProperty
, it will be blank by default.ron
03/01/2017, 6:45 AMedvin
03/01/2017, 6:45 AMron
03/01/2017, 6:46 AMedvin
03/01/2017, 6:46 AMpasswordfield(passwordEntered).validator {if (controller.repository.isEqualToPassword(passwordEntered.value)) null else "Wrong!" }
edvin
03/01/2017, 6:48 AMron
03/01/2017, 6:51 AMron
03/01/2017, 6:51 AMron
03/01/2017, 6:52 AMif (controller.repository.isEqualToPassword(passwordEntered.value)) null else ValidationMessage("Wrong!", ValidationSeverity.Error) }
edvin
03/01/2017, 6:54 AMron
03/01/2017, 6:54 AMron
03/01/2017, 6:54 AMedvin
03/01/2017, 6:55 AMedvin
03/01/2017, 6:55 AMerror("Wrong!")
edvin
03/01/2017, 6:55 AMinfo("Good")
edvin
03/01/2017, 6:55 AMwarning("Weak password")
edvin
03/01/2017, 6:55 AMsuccess("Perfect!")
edvin
03/01/2017, 6:55 AMron
03/01/2017, 8:53 AMedvin
03/01/2017, 9:57 AMedvin
03/01/2017, 10:04 AMron
03/01/2017, 10:05 AMedvin
03/01/2017, 10:06 AMedvin
03/01/2017, 10:07 AMValidation triggered by clicking button with no value in input▾
edvin
03/01/2017, 10:07 AMedvin
03/01/2017, 10:08 AMedvin
03/01/2017, 10:08 AM