| Author |
How to assign value to a Radio button in <display:column> tag
|
Balaji Bang
Ranch Hand
Joined: Apr 23, 2007
Posts: 180
|
|
Hi
I am displaying the data coming from database using <display:table> .
It has 3 columns. Name, state,EDIT.
EDIT column contains the radio buttons used for editing those columns....
Here I am tring to assign value to the radio button . But it is showing undefined , when I am trying to print in the java script.
1) Click the radio button, that should contain value which is id coming from database.
2)after getting the id in java script, I have to submit the form.
Pleas ehelp me.....
how can I assign value to the radio button
|
 |
Ankit Garg
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9189
|
|
I've closed the duplicate thread that you created on this topic.
If you had seen the documentation of display tag, this is not hard to achieve. Look at this page. Basically the currently iterated element of the display tag is put into the page scope as an attribute with the name of the id attribute of display:table tag. So you don't need all the scripting that you are using, just simply use
There seems to be some inconsistency in your code, the name attribute of the display:table tag uses requestScope.screens and in your scripting you are using screen instead of screens...
|
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
|
 |
Balaji Bang
Ranch Hand
Joined: Apr 23, 2007
Posts: 180
|
|
HI Ankit...
Thanks a lot ....
Thank you very much...
Its working fine...
|
 |
 |
|
|
subject: How to assign value to a Radio button in <display:column> tag
|
|
|