On Wednesday 02 October 2002 6:47 am, Rob Lahaye wrote: > There's a problem. > Open the paragraph dialog (in which you have included the > checkedWidgets code), enter an invalid length and then click > on [Close], the only activated button now. > > Open the paragraph again and see that the label is colored > red, despite the fact that the invalid length has been > cleared. Close the dialog and open again, gets rid of the red > color. > > Hmmm, apparently the order is: > 1) check isValid of the input fields (which still contains > the invalid string!). > > 2) update the form by the update() function of the dialog; > this will clear the invalid field. > > Result is that a cleared input field is marked as invalid :(. > > Should 1) and 2) be reversed, or will that break other > functionality?
Rob, I think that this will be fixed if you modify ControlDialog<Base>::update() in controllers/ControlDialog.tmpl, swapping the last two lines around. I'm pretty sure that none of the input methods in the xforms frontend rely on bc().readOnly(), but would prefer it if you made this change in your tree for now. Allan has suggested some improvements to the stuff in the controllers dir. I'll send you some mods presently. Regards, Angus