get value from zk html native input to java

asked 2022-11-29 11:46:45 +0800

nome gravatar image nome
107 3

Hi guys, Who have any experience on native input passing data to java? I have login page and want to pass username & password from native input to Java. But I can not get its value. Please help. If I use xmlns:h="xhtml" it ok.

<zk xmlns:n="native" >="" <n:input="" type="text" id="username" name="username" class="z-textbox"/> <n:input type="password" id="password" name="password" class="z-textbox"/> </zk>

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2022-11-29 20:58:09 +0800

MDuchemin gravatar image MDuchemin
2560 1 6
ZK Team

Using xhtml namespace is the expected way to use "native with ZK events and values" If you are using the "native" namespace, the point of the native elements being that they don't have a server-side footprint, while the xhtml elements do have a Java-side "existence" which allows for updates and events.

See here for a short sample:


link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2022-11-29 11:46:45 +0800

Seen: 4 times

Last updated: Nov 29 '22

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