• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Checkbox selection is retained even when the box is unchecked  RSS feed

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a html form to which i have added a group of checkboxes using <html:checkbox> , on hitting the submit button the user is taken to a confirmation page in which the user has an option to go back to the actual form to edit any inputs.The problem i am facing is that once i check a checkbox the value(true) gets retained in the formbean property(boolean), it dosen't change even if i uncheck the checkbox. It beats me as to why only the booleans are retaining the old values, while other strings properties are not
 
siddartha kandikonda
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is mean by string properties are retaining old values is that if i edit any text in the textboxes the changes are reflected in the string properties mapped to them while the boolean properties are not picking any change
 
Greenhorn
Posts: 3
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Siddartha

I am facing the similar issue. Have you got any solution so far?

Thanks
Shailender
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!