◆ onRegister()
void org.turro.contacts.zul.register.TellSomeoneComposer.onRegister |
( |
Event |
event | ) |
|
Definition at line 64 of file TellSomeoneComposer.java.
65 SignUp su =
new SignUp();
66 su.setName(name.getValue());
67 su.setEmail(email.getValue());
68 su.setComment(comment.getValue());
70 if(existPending(su.getEmail())) {
71 ZkossUtils.confirmProcess(I_.get(
"Email pending to confirm") +
73 I_.get(
"Resend confirmation e-mail"),
new Command() {
75 public Object execute(Context context) {
77 Clients.showNotification(I_.format(
"Confirmation e-mail has been sent to %s", sue.
getEmail()));
81 }
else if(existEmail(su.getEmail())) {
82 Clients.showNotification(I_.format(
"%s already exists", su.getEmail()));
84 su =
new ContactsPU().saveObject(su);
86 Clients.showNotification(I_.format(
"Confirmation e-mail has been sent to %s", su.getEmail()));
89 Clients.showNotification(
"No valid values");
The documentation for this class was generated from the following file: