public String build() {
        buffer.append("else{return false;}");

        String request = buffer.toString();

        reset();

        return request;
    }
Helper to generate javascript code of a client side validation*
primefaces/src/main/java/org/primefaces/util/CSVBuilder.java