19 package org.turro.auth;
21 import java.io.IOException;
22 import org.turro.elephant.TemplateControl;
23 import org.turro.i18n.I_;
24 import org.zkoss.zk.ui.event.Event;
25 import org.zkoss.zk.ui.select.annotation.Listen;
26 import org.zkoss.zk.ui.select.annotation.Wire;
27 import org.zkoss.zk.ui.util.Clients;
28 import org.zkoss.zul.Textbox;
39 @Listen(
"onClick = #remind")
40 public
void onRemind(Event event) throws IOException {
41 Clients.clearWrongValue(user);
42 if(org.turro.elephant.zkoss.ZkossElephant.doSendReminder(user.getText())) {
43 Clients.showNotification(
I_.
get(
"A reminder has been sent"));
45 Clients.wrongValue(user,
I_.
get(
"Missing") +
": " +
I_.
get(
"User/Email"));
void onRemind(Event event)
static String get(String msg)