0

How to set binding to listbox on 5.0.8 ?

asked 2011-08-09 02:55:37 +0800

Meko gravatar image Meko
24

updated 2011-08-09 03:00:49 +0800

I had been using in my app zk 5.0.5 and after I updated it to 5.0.7 and above my all binder objects broke. I found that after zk 5.0.7 I should not give page

 <?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="./main" ?> 
this annotation. And ı should use like
ListModel strset = new BindingListModelList(model,
								false);
						listbox.setModel(strset);

it works normal but I used after deleting to listbox item

   binder.loadComponent('listbox') 
to refresh listbox. But now I can't reach binder variable.It returns null.

Should I recreate string array and send assign it new BindingListModelList and then again set to listbox?

delete flag offensive retag edit
Be the first one to reply this discussion!
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: 2011-08-09 02:55:37 +0800

Seen: 558 times

Last updated: Aug 09 '11

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