c.setValue(value);
} else {
FacesContextEx ctx = FacesContextEx.getCurrentInstance();
String msg = "Invalid file content";
FacesMessage m = new FacesMessage(FacesMessage.SEVERITY_WARN, msg, msg);
ctx.addMessage(c != null ? c.getClientId(ctx) : null, m);
}
}
public void compact(UIInputEx c) {
String value = c.getValueAsString();
value = prettify(value,true);