0

Loop combo items

asked 2009-04-28 23:57:31 +0800

Wizzy gravatar image Wizzy
12

Hi

Can you loop the items in a combobox in a ZUL file? What I want to do is check that the value entered in the box matches one of the items in the combo list.

Thanks

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2009-04-29 10:46:28 +0800

kindalu gravatar image kindalu
255

You want the function of Auto-complete as live demo? or ...

http://www.zkoss.org/zkdemo/userguide/#f5

link publish delete flag offensive edit

answered 2009-04-29 12:28:06 +0800

Wizzy gravatar image Wizzy
12

No. After the user enters data into the combobox I want to make sure that it matches one of the items in the combobox. If the user enters data that doesn't match what's in the list then I intend to return an error msg. Therefore, is there a way to check the input against every item in the combobox.

link publish delete flag offensive edit

answered 2009-04-29 12:38:00 +0800

Kuikiker gravatar image Kuikiker
144

updated 2009-04-29 12:42:25 +0800

In some cases (comboboxes with just a few items) you could use a Listbox with 'select' mold instead to force user choose a valid option.

You have an example here: http://www.zkoss.org/zkdemo/userguide/#f2

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: 2009-04-28 23:57:31 +0800

Seen: 191 times

Last updated: Apr 29 '09

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