Browse Source

fixes #3712. Bit ugly fix but most likely nobody knows about XML type error messages

svn changeset:9819/svn branch:6.2
tags/6.7.0.beta1
Matti Tahvonen 14 years ago
parent
commit
f10aa3fcba
1 changed files with 11 additions and 6 deletions
  1. 11
    6
      src/com/vaadin/terminal/gwt/client/VErrorMessage.java

+ 11
- 6
src/com/vaadin/terminal/gwt/client/VErrorMessage.java View File

if (child instanceof String) { if (child instanceof String) {
final String errorMessage = (String) child; final String errorMessage = (String) child;
add(new HTML(errorMessage)); add(new HTML(errorMessage));
} else if (child instanceof UIDL.XML) {
final UIDL.XML xml = (UIDL.XML) child;
add(new HTML(xml.getXMLAsString()));
} else { } else {
final VErrorMessage childError = new VErrorMessage();
add(childError);
childError.updateFromUIDL((UIDL) child);
try {
final VErrorMessage childError = new VErrorMessage();
childError.updateFromUIDL((UIDL) child);
add(childError);
} catch (Exception e) {
// TODO XML type error, check if this can even happen
// anymore??
final UIDL.XML xml = (UIDL.XML) child;
add(new HTML(xml.getXMLAsString()));

}
} }
} }
} }

Loading…
Cancel
Save