-
FEATURED COMPONENTS
First time here? Check out the FAQ!
After running the program, the processing won't end. Here is my code in my zul
<zk xmlns:c="client">
<style>
.water-mark {
color: gray; font-style: italic;
}
.form {
border: 1px solid #E1E1E1;
background: url('../widgets/effects/form_effect/img/bg.png');
padding: 20px 20px;
-webkit-border-radius:4px;
-moz-border-radius:4px;
border-radius:4px;
}
.form .name {
display: block;
width: 100px;
text-align: center;
}
</style>
<div width="500px" class="form">
<vlayout spacing="7px">
<label value="Registration Page " style="font-size:16px;font-weight:bold;color:gray;" />
<hlayout spacing="20px">
<label class="name" value="First name :" />
<textbox id="txtFname" width='150px' />
</hlayout>
<hlayout spacing="20px">
<label class="name" value="Middle name :" />
<textbox id="txtMname" width='150px' />
</hlayout>
<hlayout spacing="20px">
<label class="name" value="Last name :" />
<textbox id="txtlname" width='150px' />
</hlayout>
<hlayout spacing="20px">
<label class="name" value="Birthday :" />
<textbox id="txtBday" width='150px' />
</hlayout>
<hlayout spacing="20px">
<label class="name" value="Salary :" />
<textbox id="txtSalary" width='150px' />
</hlayout>
<hlayout spacing="20px">
<label class="name" value="Password: " />
<textbox id="pwd" type="password" width="150px" />
</hlayout>
<hlayout spacing="20px">
<label class="name" value="Re-type:" />
<textbox type="password" width="150px" c:onChange='pwdValid(this)' />
</hlayout>
</vlayout>
</div>
<div id="result" />
<script type="text/javascript" src="/widgets/effects/form_effect/jquery.maskedinput.min.js" />
<script type="text/javascript" src="/widgets/effects/form_effect/jquery.watermarkinput.js" />
<script type="text/javascript">
zk.afterMount(function() {
jq("$txtFname").Watermark("Your Name","gray");
$.mask.definitions['A']='[A-Z]';
$.mask.definitions['m']='[01]';
$.mask.definitions['d']='[0123]';
$.mask.definitions['y']='[12]';
jq("$txtBday").mask("m9/d9/y999");
jq("$txtSalary").mask("9999-9999-9999-9999");
});
</script>
And why i am getting Failed to invoke class org.zkoss.spring.init.SecurityWebAppInit and No WebApplicationContext found: no ContextLoaderListener registered?
Hello jebard,
The zul file works as expected (You just have to include the closing zk tag).
The issue is that if there is a problem with the controller, then you also have to post it so we can help you.
Regarding the second question, you probably have not configured correctly spring. So could you please re-check it using the following guides?
http://books.zkoss.org/wiki/ZK%20Spring%20Essentials/Getting%20Started%20with%20ZK%20Spring/Setting%20Up%20ZK%20Spring
http://books.zkoss.org/wiki/ZK%20Spring%20Essentials/Getting%20Started%20with%20ZK%20Spring/Setting%20Up%20ZK%20Spring%20using%20Maven
Best Regards,
Darksu
Asked: 2015-07-06 03:20:16 +0800
Seen: 9 times
Last updated: Jul 06 '15
Facing issue in masking on phone [closed]
coerceFromString_ override no longer works from 6.5.1 [closed]
Execute Javascript on component visible
Is there a way to resolve view model properties as input to client side javascripts?
scrollbar listner for 2 grid [closed]
Theme javascript wpd file not found