0

Processing won't end when I run my program

asked 2015-07-06 03:20:16 +0800

jebard gravatar image jebard
1 1

updated 2015-07-06 03:22:53 +0800

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?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-07-06 08:47:47 +0800

Darksu gravatar image Darksu
1991 1 4

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

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

Follow
1 follower

RSS

Stats

Asked: 2015-07-06 03:20:16 +0800

Seen: 9 times

Last updated: Jul 06 '15

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