• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

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
 
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!