Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Component value Not getting updated - Strange Problem

Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have left and right pane in my screen. Left will have a tree and clicking the tree will show a form in the right side pane. I have few mandatory fields
in my form.

The problem I face is, if I submit the form with some mandatory fields empty. I am getting validation error with required message as expected.

The strange behavior is, when i click on the left side tree link to populate values in the form after getting validation problem. Only those fields which failed validation gets updated with proper values leaving the values which we entered in mandatory fields unchanged.

I will give an example to make you better understand.

1. Consider the left side tree has a list of students and right side
form has First name and Last name.

2. If you try to add/modify a student with empty Last name, you will
get "Last name required" message.

3. Now if you try to click on a different student from the tree, only
Last name which had a validation problem previously will be
properly populated and First name will always be the same which
was there during the validation problem.

Please let me know what I should do solve this issue. This is becoming critical to solve day by day.

Thanks in advance.
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing can be said unless we see the code.
    Bookmark Topic Watch Topic
  • New Topic