PDA

View Full Version : [FIXED] [2.0m1] vanishing x-icon-btn / x-form-invalid-icon



pjj
14 May 2009, 8:36 AM
Hi,
I have a problem with vanishing validation icon from formPanels. At first everything is ok. When I enter correct data inside the form then the validation icon disappears. But after making an error, validation icon will not appear anymore. Field is marked on red but, the icon is still set with x-hide-display. More, when I start typing, the position is always modified and is growing. See the link below (code within red box)

http://img208.imageshack.us/img208/5263/xforminvalidicon.png

Simplified code:


formPanel = new FormPanel();
formPanel.setHeading("Account Registration");
formPanel.setFrame(true);
formPanel.setWidth(400);
formPanel.setLayout(new FormLayout());
formPanel.setHideMode(HideMode.OFFSETS);

TextField<String> field;
field = new TextField<String>();
field.setFieldLabel("Field");
field.setAutoValidate(true);
field.setAllowBlank(false);
field.setMinLength(3);
formPanel.add(field);

TextField<String> field2;
field2 = new TextField<String>();
field2.setFieldLabel("Field");
field2.setAutoValidate(true);
field2.setAllowBlank(false);
field2.setMinLength(3);
formPanel.add(field2);

add(formPanel);
Thanks for any remarks

sven
14 May 2009, 11:21 AM
Fixed in SVN.

pjj
15 May 2009, 12:00 AM
thx, i'm going to test it now