Revision history [back]

click to hide/show revision 1
initial version

asked 2022-07-28 22:52:20 +0800

mskala gravatar image mskala

Password value visible in page source

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

Password value visible in page source

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

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More