Example usage for com.google.gwt.xml.client XMLParser supportsCDATASection

List of usage examples for com.google.gwt.xml.client XMLParser supportsCDATASection

Introduction

In this page you can find the example usage for com.google.gwt.xml.client XMLParser supportsCDATASection.

Prototype

public static boolean supportsCDATASection() 

Source Link

Document

This method determines whether the browser supports CDATASection as distinct entities from Text nodes.

Usage

From source file:ch.systemsx.cisd.openbis.generic.client.web.client.application.FormPanelListener.java

License:Apache License

public final void handleEvent(final FormEvent be) {
    final String msg = be.resultHtml;
    // Was not successful
    if (StringUtils.isBlank(msg) == false) {
        if (msg.startsWith("<message")) {
            if (msg.indexOf("<![CDATA[") > -1 && XMLParser.supportsCDATASection() == false) {
                infoBox.displayError(msg.replaceAll("<", "&lt;"));
            } else {
                extractAndDisplay(msg);// ww  w.jav  a  2s.co m
            }
        } else {
            infoBox.displayError(msg);
        }
        setUploadEnabled();
    } else {
        onSuccessfullUpload();
    }
}