0

how to confirm password

asked 2013-07-24 02:44:46 +0800

susu gravatar image susu
11 2

updated 2013-07-24 05:38:50 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...
<label value="${lbl:name('Password')}" />
                        <span class="req"></span>
                        <textbox id="txtUSR_PASSWORD" type="password" value="@{appuser.USR_PASSWORD}"   width="80%" readonly="false"
                        constraint="" onChange='' />

                        <label value="${lbl:name('Password Hint')}" />
                        <span class="req"></span>
                        <textbox id="txtUSR_PASSWORD1" type="password" value="@{appuser.USR_PASSWORD}"   width="80%" readonly="false"
                        constraint="" onChange='' />
delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2013-07-24 05:54:54 +0800

nsharma gravatar image nsharma flag of India
917 1 11

updated 2013-07-24 05:55:11 +0800

I think you have to check it while typing,for that you can write your code in

onChange="@command('checkPassword')"

and create a method with same name in your your VM ,Inside the method you can check whether the text value is same as needed.for confirmation you can change the textbox background from red to green or whatever sign you like to prefer.

You need to bind this value to VM.

or use like :

onChange="@command('checkPassword' ,password= appuser.USR_PAS)"

also for functionality over "ENTER" button ,include

onOK="@command('checkPassword')" .
link publish delete flag offensive edit

answered 2013-07-25 02:36:42 +0800

cor3000 gravatar image cor3000
4466 2 7
ZK Team

updated 2013-07-25 02:39:01 +0800

If I understand you correctly you would like to validate that both passwords are the same. For this cases where 2 fields need to be validated against each other you could refer to Dependent Property Validation. If this does not help or I got your question wrong please provide more details on what you are trying to achieve and which version of ZK you are using.

link publish delete flag offensive edit

answered 2013-07-25 09:00:07 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2615 3 8
http://emrpms.blogspot.in...

You can also do using JSR 303 Validation . Check my Example here

link publish delete flag offensive edit
Your reply
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

Follow
1 follower

RSS

Stats

Asked: 2013-07-24 02:44:46 +0800

Seen: 39 times

Last updated: Jul 25 '13

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