This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams and have Darcy DeClute on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown

Radio Button Binding to Array of Bean Property in Spring MVC 2.0

Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I am working on a code where it is required to bind the values from jsp using radio buttons in the bean array. In the code snippet below, if I use status.expression in the name attribute, then I am unable to group the radio buttons since every radio button will be having a different name and hence, I can select multiple radio buttons simultaneously since they don't belong to a group. If I use a constant name to group radio buttons, then I am unable to set the value of the property customerSelected using radio buttons.
On submitting the form, the CustomerInfo. customerSelected should be set true or false.

The code is as follows:



Spring Version Being Used: 2.0

Please guide how can I achieve my target.

I don't even know how to spell CIA. But this tiny ad does:
a bit of art, as a gift, the permaculture playing cards
    Bookmark Topic Watch Topic
  • New Topic