◆ onRegister()
void org.turro.contacts.zul.register.TellSomeoneControl.onRegister |
( |
Event |
event | ) |
|
Definition at line 60 of file TellSomeoneControl.java.
61 SignUp su =
new SignUp();
62 su.setName(name.getValue());
63 su.setEmail(email.getValue());
64 su.setComment(comment.getValue());
66 if(existPending(su.getEmail())) {
67 Messages.confirmProcess().add(I_.get(
"Email pending to confirm"))
68 .paragraph().add(I_.get(
"Resend confirmation e-mail")).show(() -> {
70 Clients.showNotification(I_.format(
"Confirmation e-mail has been sent to %s", sue.
getEmail()));
72 }
else if(existEmail(su.getEmail())) {
73 Clients.showNotification(I_.format(
"%s already exists", su.getEmail()));
75 su =
new ContactsPU().saveObject(su);
77 Clients.showNotification(I_.format(
"Confirmation e-mail has been sent to %s", su.getEmail()));
80 Clients.showNotification(
"No valid values");
The documentation for this class was generated from the following file: