Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with radio button  RSS feed

 
sudhasrinivas pallam
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am using radio button to display 2 diffenent subviews . When we select the option, it doesn't change the view . If we select it and click anywhere in the form then it change the view.
The code i used is


help me out
 
Rajneesh Kumar Rajput
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pallam,
This seems to me java script behaviour which is already known in JSF radio button. Please use onClick intead of onChange.

see...
http://wiki.apache.org/myfaces/Radio_Buttons_and_Browsers
 
sudhasrinivas pallam
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rajneesh Kumar,

Thanks a lot for the reply i tested it and it worked...
 
permaculture is a more symbiotic relationship with nature so I can be even lazier. Read tiny ad:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!