Revision history [back]

click to hide/show revision 1
initial version

answered 2020-05-20 14:53:52 +0800

lianan gravatar image lianan

Once I put back "apply="org.zkoss.bind.BindComposer" to my ZUL file,got additional error message likes below:

<window id="personinforList" title="Person Information" border="normal" apply="org.zkoss.bind.BindComposer" viewmodel="@id('vm') @init('XXXXXX.PersonInforViewModel')">

2020-05-20 14:49:01.253 WARN 18616 --- [nio-8080-exec-3] org.zkoss.zk.ui.metainfo.Parser : file:/C:/Users...20New/view/PersonInfor.zul:5:81: If the attribute of viewModel is being used, then "org.zkoss.bind.BindComposer" will be applied automatically. Notice that if you want to use another Composer, you will need to apply the "org.zkoss.bind.BindComposer" yourself. 2020-05-20 14:49:01.377 WARN 18616 --- [nio-8080-exec-3] org.zkoss.bind.impl.BinderImpl : you are using a composer [PersonInforViewModel [selectedPerson=null, personalList=null]] as a view model 2020-05-20 14:49:01.409 ERROR 18616 --- [nio-8080-exec-3] org.zkoss.bind.impl.ParamCall :

java.lang.NullPointerException: null at com.lianan.data.viewmodel.PersonInforViewModel.initSetup(PersonInforViewModel.java:53)

Once I put back "apply="org.zkoss.bind.BindComposer" to my ZUL file,got additional error message likes below:

<window id="personinforList" title="Person Information" border="normal" apply="org.zkoss.bind.BindComposer" viewmodel="@id('vm') @init('XXXXXX.PersonInforViewModel')">

2020-05-20 14:49:01.253 WARN 18616 --- [nio-8080-exec-3] org.zkoss.zk.ui.metainfo.Parser : file:/C:/Users...20New/view/PersonInfor.zul:5:81: If the attribute of viewModel is being used, then "org.zkoss.bind.BindComposer" will be applied automatically. Notice that if you want to use another Composer, you will need to apply the "org.zkoss.bind.BindComposer" yourself. 2020-05-20 14:49:01.377 WARN 18616 --- [nio-8080-exec-3] org.zkoss.bind.impl.BinderImpl : you are using a composer [PersonInforViewModel [selectedPerson=null, personalList=null]] as a view model 2020-05-20 14:49:01.409 ERROR 18616 --- [nio-8080-exec-3] org.zkoss.bind.impl.ParamCall :

java.lang.NullPointerException: null at com.lianan.data.viewmodel.PersonInforViewModel.initSetup(PersonInforViewModel.java:53)XXXXXXX.PersonInforViewModel.initSetup(PersonInforViewModel.java:53)

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