0

Radio buttons tied to list items?

asked 2007-10-24 15:26:44 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4586208

By: snijim

Greetings,

I'm writing a simple app to make yes/no decisions on a data set. I'm currently pulling data from a db into a listbox.

What I would like to do is:
for each item in the list box, display a radio button next to it. Then, I can write methods to post the data to the database, and listeners go retrieve the decision (and who made it) and display it back on the list box.

Any way to derive and display a series of radio buttons based on the contents of a list box?

Sharif

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2007-10-26 03:23:29 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4589215

By: jebberwocky

Dear Sharif

Checkbox:
<listbox id="box" width="460px" multiple="true" checkmark="true">...
Radio:
<listbox id="box" width="460px" checkmark="true">....

Please refer to http://www.zkoss.org/zkdemo/userguide/ for live demo

//Jeff

link publish delete flag offensive edit

answered 2007-10-26 13:10:06 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4589844

By: snijim

Jeff,

Thanks - that's what I ended up going with. What I originally had pictured was that every row would have yes/no radio buttons - then, have the clicking of the button drive the event to the database and refresh that row.

Basically, a listbox w/ multiple="true" and checkmark="true" will work, coupled with yes/no buttons to act on the selections.

Now I'm just working on figuring out how to retrieve the value of the selected items to stuff into an array and pass off to a method to update the database.

Does that make sense?

Sharif

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: 2007-10-24 15:26:44 +0800

Seen: 402 times

Last updated: Oct 26 '07

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