ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

ZK6 Form Binding problem.

kkurt
7 Feb 2012 20:34:52 GMT
7 Feb 2012 20:34:52 GMT

Hi,
I am trying to use new form binding. When i try to enter some data to textbox, i am getting error:

SEVERE: >>org.zkoss.zk.ui.UiException: java.lang.NoSuchMethodException: org.zkoss.bind.SimpleForm: no method called password for null
>>java.lang.NoSuchMethodException: org.zkoss.bind.SimpleForm: no method called password for null

and here is the ui snippet :

<grid form="@id('fx') @load(vm.user) @save(vm.user, before='saveMember')">
...
...
     <textbox value="@bind(fx.password)  width="150px" sclass="text1_small" maxlength="10" id="password" type="password"></textbox>	




What is the problem?

kkurt
7 Feb 2012 20:45:07 GMT
7 Feb 2012 20:45:07 GMT

Hi, i have just solved. I want to share solution with you.
I forgot to delete my old zul files annotation databinder init tag.
I deleted and it works....

<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" root="./RegistrationWin"?>

antonko
5 May 2012 10:53:20 GMT
5 May 2012 10:53:20 GMT

Thank you, kkurt!
I have spent several hours trying to find out the problem and your solution helped me too.

kkurt
5 May 2012 13:15:19 GMT
5 May 2012 13:15:19 GMT

I am glad to help you , thanks ...