How to build 2 linked list

34 views
Skip to first unread message

asfer...@gmail.com

unread,
Aug 28, 2012, 11:01:05 AM8/28/12
to zk-ui...@googlegroups.com
It's urgent

Hi all,

first list --> categorie1
second list --> categorie2 (populate by the categorie selected value)

Could you tell me why i have this message --> Cannot invoke method setModel() on null object
when i select a categorie1 option

GSP code

<zkui:select name="categorie1.id" id="categorie1" from="${vdo.catapp.Categorie1.list()}" optionKey="id" />
<zkui:select id="categorie2" optionKey="id"/>
Composer Code

Window self
Combobox categorie1
Combobox categorie2
void onChange_categorie1(Event e) {
def categories2 = Categorie2.where("categorie1.id = "+categorie1.selectedItem.value)
ListModelList lm = new ListModelList(categories2)
categorie2.setModel(lm)
}

Thanks !

asfer...@gmail.com

unread,
Nov 26, 2012, 5:13:38 AM11/26/12
to zk-ui...@googlegroups.com, asfer...@gmail.com
Could you give me an answer, please ? Tell me if this Google group is active or not ?
Reply all
Reply to author
Forward
0 new messages