-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
Hello,
I noticed that when you create a password field in ZK and set it's value in composer, the password value is visible, when you inspect the page source. It is possible to set the value to the password field and keep it "hidden".
Thank you, Michal
2 | added examle |
Hello,
I noticed that when you create a password field in ZK and set it's value in composer, the password value is visible, when you inspect the page source. It is possible to set the value to the password field and keep it "hidden".
ZUL:
<zk>
<window border="normal" title="hello" apply="pkg$.TestComposer">
<textbox type="password" id="ttt"></textbox>
</window>
</zk>
Composer:
import 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{
Textbox ttt;
public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp);
ttt.setValue("michal");
}
public void onClick$btn(Event e) throws InterruptedException{
Messagebox.show("Hi btn");
}
}
Thank you, Michal