From: Ronald H. <rh...@co...> - 2004-06-04 12:09:22
|
Hi Keith, I am working from your sample application, and I created a small change in the sample, by changing the OwnerGeneralPanel to the following: // JTextField lastNameField = binder().bind("lastName", reporter()); JTextField lastNameField = binder().bind("lastName"); When I debug the newOwner in NewOwnerWizard, the lastname isnt filled anymore. It seems like the propertyChangeEvent doesnt get fired anymore if you dont use a binder. I dont think that this is intended. When debugging org.springframework.rcp.validation.DefaultBeanBinder, and changed the following lines, it works as intended (or as I think it should be intended :) // if (reporter != null && rules != null) { DefaultFormatter formatter = (DefaultFormatter)field .getFormatter(); formatter.setCommitsOnValidEdit(true); // } Again, I am no expert on swing, but turning of this if-condition, doesnt seem to effect the program. Also when adding another new owner, the finish button is already enabled. Maybe the state should be changed back after a successfull onFinish or onCancel? Cheers Ronald |