index.zulzul<zk>
<html><![CDATA[
<ol>
<li>Remove the '@' sign in the textbox and click outside the textbox, then the Errorbox will appear.</li>
<li>Do NOT close the Errorbox, add '@' sign back to the textbox again.</li>
<li>Close the Errorbox. If the border of textbox remains red, it is a bug.</li>
</ol>
]]></html>
<textbox id="tb" width="150px" value="[email protected]"
constraint="/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*([,;]\s*\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)*/: Please enter real e-mail address" />
</zk>TestComposer.javajavaimport org.zkoss.zk.ui.*;
import org.zkoss.zk.ui.event.*;
import org.zkoss.zk.ui.util.*;
import org.zkoss.zk.ui.ext.*;
import org.zkoss.zk.au.*;
import org.zkoss.zk.au.out.*;
import org.zkoss.zul.*;
public class TestComposer extends GenericForwardComposer{
public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp);
}
public void onClick$btn(Event e) throws InterruptedException{
Messagebox.show("Hi btn");
}
}