0

ZK chosenbox

asked 2013-10-09 14:50:24 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

When i use ListModel with bean collection, how can i show the description after selecting, currently only way i am just doing by adding toString in the bean ? Whether it have value or label property ?

delete flag offensive retag edit

Comments

Thank you joshi. Can we do without tostring method in java bean

Senthilchettyin ( 2013-10-14 08:55:04 +0800 )edit

5 Answers

Sort by ยป oldest newest most voted
2

answered 2013-10-10 06:04:49 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

Yes you can check how-can-start-with-zk-chosenboxdemo-code may it help you.

link publish delete flag offensive edit
0

answered 2013-10-09 14:57:23 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

Can some one help to convert this demo http://www.zkoss.org/zkdemo/combobox/chosenbox using java bean

link publish delete flag offensive edit
0

answered 2013-10-15 11:21:59 +0800

vincentjian gravatar image vincentjian
2245 6

Hi, if you don't like override toString in JavaBean, then converter is the only choice.

Here is the sample modify from zkdemo

link publish delete flag offensive edit
0

answered 2013-11-04 04:33:04 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

updated 2013-11-04 04:33:19 +0800

Thank you vincent for detail example. One more help please, after selecting 3 or 4 items, i need to handle onClick event for each item ? is that possible ?

link publish delete flag offensive edit

Comments

Yes, please refer to sample at gist: https://gist.github.com/benbai123/7332482

benbai ( 2013-11-07 06:19:27 +0800 )edit
0

answered 2013-11-07 07:10:40 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

Thank you benbai once again. Excellent one. Again i am sorry, one more request, currently i need to limit the selection of items i.e user can select only 10 items. I tried to setup the counter onSelection event, but component support removing the items either by clicking the X button or back space, so here i need to decrease the count. Can you please tell me which is the event to listen here ?

link publish delete flag offensive edit
Your answer
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: 2013-10-09 14:50:24 +0800

Seen: 47 times

Last updated: Nov 07 '13

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