0

Live data Listbox problems with 3.5

asked 2008-09-11 17:56:47 +0800

prashanth gravatar image prashanth
24

Hi,

I have a listbox with live data. I used the BindingListModelList class as the model for this listbox.

When i click on an item in the list box i get the following error:


Cannot find associated CollectionItem=<Listcell z_ak_o1>, binding=[binder:org.zkoss.zkplus.databind.AnnotateDataBinder@5476a7, comp:<Listcell z_ak_o1>, attr:label, expr:album.albumName, load-when:null, save-when:null, load:true, save:false, converter:null], collectionComp=<Listitem @z_ak_r3_8>

It works perfectly with 3.0.7 but 3.5 gives me this error. I like 3.5 and would love to upgrade. But i cannot do so if this error persists.

Please help.

Thanks
Prashanth

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2008-10-02 16:44:19 +0800

robertlee gravatar image robertlee
561

Hi prashanth,

Can you post some sample code so we can try replicate your error?

link publish delete flag offensive edit

answered 2008-10-03 00:45:35 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

Do you have two listboxes in a page? DO NOT USE same each variable name (self="@{each=var1}") on both listboxes.

link publish delete flag offensive edit

answered 2008-10-08 20:25:20 +0800

prashanth gravatar image prashanth
24

Hi Henri & Robert,

I managed to fix it. I did have two listboxes and i used a different variable and it worked fine :)

Thanks
Prashanth

link publish delete flag offensive edit

answered 2008-11-01 02:25:55 +0800

msrednsi gravatar image msrednsi
106 2

I have the same problem since i moved from 3.0.5 to 3.5.1.
I use a macro component with a listbox inside it and i don't know how to change the variable name. When i use this component two o more times, i get now, with 3.5.1, this error.

Afte reading this post, my workaround has been to use slightly different zul pages for the same macro-component, changing only the variable name on the listbox. It works, but its an ugly solution. I tried to use el-expressions and pass the variable name as an argument to the macro with no luck, annotations seems to be read before el expressions get a chance to execute.

Any idea of how to acomplish a good macro, just like it was with 3.0.5?


Thanks.

link publish delete flag offensive edit

answered 2008-11-01 03:26:46 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

msrednsi,

There is a feature request for this. Please follow it.

https://sourceforge.net/tracker/index.php?func=detail&aid=2075839&group_id=152762&atid=785194

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2008-09-11 17:56:47 +0800

Seen: 467 times

Last updated: Nov 01 '08

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