I display a CActiveForm in a CJuiDialog.
If there are validation errors, the dialog gets the correct error messages to display, but it is displayed in an unformatted way - almost as if the dialog lost its css. Also, the main page in the background is totally gone (white screen).
The next part is even stranger:
I added “‘validateOnSubmit’ => true” to the form. When I then create the form and submit it immediately, the error messages are displayed correctly and the format is all OK.
But, if I create the form, move/shift it a bit with the mouse and then submit it immediately, I sometimes get the same unformatted garbage. Not every time, but sometimes. So I can’t even duplicate the error at free will.
This happens in IE, FF and Chrome.