File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to have default value for radio button?

 
Vladislav Simovic
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have written something like this:



bean



Now when i run this code no value is selected. What to do to have default value selected?
 
Vladislav Simovic
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found solution - in <h:selectOneRadio> in value attribute should be placed desired default value.

But alas I have one more problem, when i write code to show radio buttons, between them i have black lines. How can i remove them? I have attched small picture to illistrate what i am talking about.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic