-
Type:
Bug
-
Resolution: Cannot Reproduce
-
Priority:
Normal
-
None
-
Affects Version/s: 6.0.0
-
Component/s: Browser Issue
-
None
-
Environment:
Win7
-
None
ZUL File
<?xml version="1.0" encoding="UTF-8"?>
<zk xmlns:c="client">
<window border="normal" id="setuserpassword" apply="com.elitecore.wom.web.system.user.SetPasswordComposer">
<div sclass="viewActionTitle"><label value="" style="font-weight: bold;" id="divLabel"/></div>
<grid width="800px" sclass="form-grid" style="border: 0px;" oddRowSclass="non-odd" id="passwordgrid">
<columns>
<column width="250px"></column>
<column width="250px"></column>
</columns>
<rows>
<row align="top">
<label value="${labels.sp.newpassword}"/>
<textbox id="newpassword" type="password" width="150px" maxlength="20"
constraint="no empty, /((?=.\d)(?=.[A-Z])(?=.*[\W_]).
<attribute c:name="onChange">
<![CDATA[
var button = this.$f('btnSetPassword');
var reTypePassTextbox = this.$f('confirmpassword');
var passTextbox = this.$f('newpassword');
var valLabel = this.$f('pwd_val1');
valLabel.setValue('Not Match !');
if(passTextbox.getValue().length != 0){
button.setDisabled(true);
if(reTypePassTextbox.getValue().length != 0 ){
if(passTextbox.getValue() == reTypePassTextbox.getValue()){ button.setDisabled(false); valLabel.setValue('OK !'); }else{ valLabel.setValue('Not Match !'); button.setDisabled(true); }
}else{ valLabel.setValue('Not Match !'); button.setDisabled(true); }
}else{ valLabel.setValue('Not Match !'); button.setDisabled(true); }
]]>
</attribute>
</textbox>
</row>
<row align="top">
<label value="${labels.sp.confirmpassword}"/>
<hlayout>
<textbox id="confirmpassword" type="password" width="150px"
maxlength="20" constraint="no empty" instant="true">
<attribute c:name="onChange">
<![CDATA[
var button = this.$f('btnSetPassword');
var reTypePassTextbox = this.$f('confirmpassword');
var passTextbox = this.$f('newpassword');
var valLabel = this.$f('pwd_val1');
if(passTextbox.getValue().length != 0){
button.setDisabled(true);
if(reTypePassTextbox.getValue().length != 0 ){
if(passTextbox.getValue() == reTypePassTextbox.getValue()){ button.setDisabled(false); valLabel.setValue('OK !'); }else{ valLabel.setValue('Not Match !'); button.setDisabled(true); }
}else{ valLabel.setValue('Not Match !'); button.setDisabled(true); }
}else{ valLabel.setValue('Not Match !'); button.setDisabled(true); }
]]>
</attribute>
</textbox>
<label id="pwd_val1" value="" />
<image id="image"/>
</hlayout>
</row>
</rows>
</grid>
<div align="center"><label id="expirymessage" style="font-size:12pt;color:red"></label></div>
<separator bar="false" />
<separator bar="false" />
<separator bar="false" />
<hbox>
<button id="btnSetPassword" type="button" label="${labels.sp.changepassword}" mold="trendy"/>
<button label="Cancel" onClick="setuserpassword.detach()" mold="trendy"/>
</hbox>
<separator bar="false" />
</window>
</zk>
Display on Google Chrome (v20.0.1132.47))
<link rel="stylesheet" type="text/css" href="/cwomweb/zkau/web/9402b7cd/zul/css/zk.wcs"/>
<script type="text/javascript" src="/cwomweb/zkau/web/9402b7cd/js/zk.wpd" charset="UTF-8">
</script>
<script type="text/javascript" src="/cwomweb/zkau/web/9402b7cd/js/zul.lang.wpd" charset="UTF-8">
</script>
<!-- ZK 6.0.0 2012021410 -->
<script type="text/javascript">zkopt({kd:1,ppos:'center'});</script><div id="pCfU_" class="z-temp"></div>
<script type="text/javascript">zkmx(
[0,'pCfU_',{dt:'z_ds50',cu:'/cwomweb',uu:'/cwomweb/zkau',ru:'/WEB-INF/pages/system/user/set-password.zul',style:'width:100%;',ct:true},[
['zul.wnd.Window','pCfU0',{id:'setuserpassword',$$onSize:false,$$onMaximize:false,$$onOpen:false,$$onMinimize:false,$$onZIndex:false,$onClose:true,$$onMove:false,prolog:'\n',border:'normal'},[
['zul.wgt.Div','pCfU1',{sclass:'viewActionTitle',prolog:'\n'},[
['zul.wgt.Label','pCfU2',{id:'divLabel',style:'font-weight: bold;'},[]]]],
['zul.grid.Grid','pCfU3',{id:'passwordgrid',$$onRender:true,$$onDataLoading:true,$$onInnerWidth:false,$$onPageSize:true,$$onScrollPos:false,width:'800px',sclass:'form-grid',style:'border: 0px;',prolog:'\n',oddRowSclass:'non-odd',_topPad:0,emptyMessage:null,_totalSize:2,_offset:0},[
['zul.grid.Columns','pCfU4',{$$onColSize:false},[
['zul.grid.Column','pCfU5',{$onSort:true,$onGroup:true,width:'250px'},[]],
['zul.grid.Column','pCfU6',{$onSort:true,$onGroup:true,width:'250px'},[]]]],
['zul.grid.Rows','pCfU7',{_offset:0,visibleItemCount:2},[
['zul.grid.Row','pCfU8',{align:'top',_index:0},[
['zul.wgt.Label','pCfU9',{value:'New Password'},[]],
['zul.inp.Textbox','pCfUa',{id:'newpassword',$$onError:false,$$onChange:false,listeners:{onChange:function(event){
var button = this.$f('btnSetPassword');
var reTypePassTextbox = this.$f('confirmpassword');
var passTextbox = this.$f('newpassword');
var valLabel = this.$f('pwd_val1');
valLabel.setValue('Not Match !');
if(passTextbox.getValue().length != 0){
button.setDisabled(true);
if(reTypePassTextbox.getValue().length != 0 ){
if(passTextbox.getValue() == reTypePassTextbox.getValue()){ button.setDisabled(false); valLabel.setValue('OK !'); }else{ valLabel.setValue('Not Match !'); button.setDisabled(true); }
}else{ valLabel.setValue('Not Match !'); button.setDisabled(true); }
}else{ valLabel.setValue('Not Match !'); button.setDisabled(true); }
}},width:'150px',maxlength:20,instant:true,constraint:'no empty, /((?=.
d)(?=.[A-Z])(?=.*\\W_).{8,20}
)/ : Password should contain minimum 8 maximum 20 characters, atleast 1 special, 1 uppercase and 1 numeric character',type:'password'},[]]]],
['zul.grid.Row','pCfUb',
,[
['zul.wgt.Label','pCfUc',
,[]],
['zul.box.Hlayout','pCfUd',{},[
['zul.inp.Textbox','pCfUe',{id:'confirmpassword',listeners:{onChange:function(event){
var button = this.$f('btnSetPassword');
var reTypePassTextbox = this.$f('confirmpassword');
var passTextbox = this.$f('newpassword');
var valLabel = this.$f('pwd_val1');
if(passTextbox.getValue().length != 0){
button.setDisabled(true);
if(reTypePassTextbox.getValue().length != 0 ){
if(passTextbox.getValue() == reTypePassTextbox.getValue())
else
{ valLabel.setValue('Not Match !'); button.setDisabled(true); }}else
{ valLabel.setValue('Not Match !'); button.setDisabled(true); }}else
{ valLabel.setValue('Not Match !'); button.setDisabled(true); }}},width:'150px',maxlength:20,instant:true,constraint:'no empty',type:'password'},[]],
['zul.wgt.Label','pCfUf',
,[]],
['zul.wgt.Image','pCfUg',
,[]]]]]]]]]],
['zul.wgt.Div','pCfUh',
,[
['zul.wgt.Label','pCfUi',
,[]]]],
['zul.wgt.Separator','pCfUj',
,[]],
['zul.wgt.Separator','pCfUk',
,[]],
['zul.wgt.Separator','pCfUl',
,[]],
['zul.box.Box','pCfUm',
,[
['zul.wgt.Button','pCfUn',
,[],'trendy'],
['zul.wgt.Button','pCfUo',{$onClick:true,label:'Cancel'},[],'trendy']],'horizontal'],
['zul.wgt.Separator','pCfUp',
,[]]]]]]);
</script>
<noscript>
<div class="noscript"><p>Sorry, JavaScript must be enabled.<br/>Change your browser options, then <a href="">try again</a>.</p></div>
</noscript>
Although it works fine with Firefox and IE.