• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to assign value to a Radio button in <display:column> tag

 
Balaji Bang
Ranch Hand
Posts: 182
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Balaji Bang
Ranch Hand
Posts: 182
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Ankit...

Thanks a lot ....
Thank you very much...

Its working fine...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic