I want to have a repeater like DataView
or ListView
. The first column of each row (named User ID) should be read from a List
, and for each user ID, the program should dynamically create three radio buttons like these:
Requirements:
- The user must able to change selection of radio buttons.
- When the user clicks the submit button, radio values be displayed using the
info("")
method.
I've already done this by using this example, but when I cl开发者_StackOverflow社区ick the submit button, old selections are shown, and the form gets reset to those old selections.
This example code might be helpful.
ListView doesn't play very well with form components, but it may work if you call ListView.setReuseItems(true);
.
精彩评论