PDA

View Full Version : [2.0-m1] FileUploadField readonly does not affect button



Colin Alworth
14 May 2009, 7:59 AM
When marking a FileUploadField readonly, the text field it uses for the path is marked readonly, but the button can still be clicked.

Create the field, and add it to the page:
FileUploadField field = new FileUploadField();
field.setReadOnly(true);
formPanel.add(field);
Click the 'Browse...' buttonExpected behavior: nothing should happen
Actual behavior: file window