Radio Buttons inside tables.

Hello,I have a table with radio buttons to select rows in Page1. After a button click, the system goes to Page2. After a back button, the systems returns to Page1, but the row is not selected anymore. Is there any way to mantain the rows selected ?ThanksM醨cio
[287 byte] By [marcioa1] at [2007-11-26 9:11:16]
# 1
Save the rowkeys of the selected rows in a list or array in sessionBean1 on the first button click. Restore the radio button state from the stored rowkeys in the prerender() in the first page. Dan
dkible at 2007-7-6 23:31:11 > top of Java-index,Development Tools,Java Tools...
# 2

There is limited documentation on this, but you might want to use the table select phase listener.

You can see this in action in the following sample app: http://blogs.sun.com/roller/page/divas?entry=table_component_sample_project

You can read a bit about it here:

http://blogs.sun.com/roller/page/winston?entry=single_selectable_row_table_comp onent

jetsons at 2007-7-6 23:31:11 > top of Java-index,Development Tools,Java Tools...
# 3
Dear Dan ,Thaks for your reply, but I don't know how to code your suggestion. Could you write a sample line for me ? I'm new in JSF and everything looks like a mystery.Thaks again,M醨cioMessage was edited by: marcioa1
marcioa1 at 2007-7-6 23:31:11 > top of Java-index,Development Tools,Java Tools...
# 4
Dear mates,The following lines has solved my problem tablePhaseListener.setSelected(rowKey, Boolean.TRUE);radioButton1.setSelectedValue(Boolean.TRUE); Thaks again,M醨cio
marcioa1 at 2007-7-6 23:31:11 > top of Java-index,Development Tools,Java Tools...
# 5
Hello marcioa1:I am having the same problem that you had, but I don'tunderstand how you solved it.Could you please post the complete source code?Thanks a lot !!-Mono
mono at 2007-7-6 23:31:11 > top of Java-index,Development Tools,Java Tools...