1

listBox.getModel() is NULL but listBox.getItems() NOT NULL - How to get Model

asked 2014-01-21 03:51:15 +0800

bhattsu gravatar image bhattsu
41 1

I need to get the Model Array from a listbox which is coming out as NULL but listBox.getItems is not.

I have MySelectComposer that is applied to Window component.

The Window component has Listbox that is using MyTableViewModel.

When I do listBox.getModel() from MySelectComposer it returns NULL. When I do listBox.getItems() from MySelectComposer I get all the children.

How do I convert listItems to models so that I can chance the items in the models and it gets reflected in Listbox.

delete flag offensive retag edit

Comments

I had a dream about your code but unfortunally I forget it, can you post it here so I can remember it again?

chillworld ( 2014-01-21 07:35:49 +0800 )edit
Be the first one to answer this question!
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
1 follower

RSS

Stats

Asked: 2014-01-21 03:51:15 +0800

Seen: 29 times

Last updated: Jan 21 '14

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