Note that there are some explanatory texts on larger screens.

plurals
  1. POZK NullPointerException in a ListModel with empty data and Sourced file: inline evaluation of: ``
    primarykey
    data
    text
    <p>hi guys i am very new to ZK i am receiving 2 errors please guide me throught sorry if this errors and very easy for a not newbie. here is the code.</p> <pre><code>public void createItem(Listbox list) { BindingListModelList model=(BindingListModelList)list.getModel(); System.out.println((list==null));//prints false System.out.println((model==null));//prints true if(model==null){ list.setModel(new ListModelList());System.out.println("After Set New Model: "+(list.getModel()==null));//prints true} model=(BindingListModelList)list.getModel(); System.out.println((model==null));//prints true model.add(getMeridaManager().createNewMeridaItem(list));//throws NPE } public void loadGrid(Listbox list) { //here i load the model but when is a empty ALL arrayList throws exception on createItem(Listbox list) java.util.List&lt;DianaMerida&gt;all = meridaManager.getAllMeridas(); BindingListModelList rl=new BindingListModelList(all,false); list.setModel(rl); } </code></pre> <p>here if the .zul when i uses the past code. i was wonder if is a empty collection how can i add new items to the model by example a add new record later.</p> <p>2 question i have the following code in a zul. </p> <pre><code>checkbox id="isclosecheckbox" checked="@{d.c03}" onCheck="myClass.checkBoxListener2(datebox1);" datebox id="datebox1" cols="10" format="short" mold="rounded" </code></pre> <p>but when the checkBox is clicked and the <code>myClass.checkBoxListener2(datebox1);</code> method is called i get the following error.</p> <blockquote> <p>03/02/2013 04:30:41 PM org.zkoss.zk.ui.impl.UiEngineImpl handleError:1280 GRAVE: >>org.zkoss.zk.ui.UiException: Sourced file: inline evaluation of: <code> . . . '' : Undefined argument: datebox1 : at Line: 300 : in file: inline evaluation of:</code><br> . . . '' : ( datebox1 ) </p> <blockquote> <blockquote> <p>Sourced file: inline evaluation of: <code>. . . '' : Undefined argument: datebox1 : at Line: 300 : in file: inline evaluation of:</code><br> . . . '' : ( datebox1 )</p> </blockquote> </blockquote> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload