Checkboxe fields not being reset correctly when exception occurs
----------------------------------------------------------------

         Key: BPM-262
         URL: http://jira.andromda.org/browse/BPM-262
     Project: Bpm4Struts Cartridge
        Type: Bug
    Versions: 3.1-RC1    
    Reporter: Lee Greiner
 Assigned to: Wouter Zoons 
    Priority: Minor


The problem:

If I have a front-end view with 2 checkbox parameters on the transition leaving 
the view. I check the first checkbox, submit, and an exception occurs. The 
state of the checkboxes is correct. I then check both checkboxes, submit, and 
an exception occurs. The state of the checkboxes is still correct. I then 
deselect one of the checkboxes, submit, and again the exception occurs. After 
this third exception both checkboxes are selected, not the state just prior to 
the last submission.

The problem is caused by the way the exception is handled in the execute method 
of the controller. Since no request parameter is sent when a checkbox is not 
selected BeanUtils.populate() does not set the currentForm's attribute of the 
checkbox in question leaving it in the selected state.

Will provide a patch that fixes the problem.




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information

Reply via email to