Example usage for com.google.gwt.core.client JavaScriptObject toSource

List of usage examples for com.google.gwt.core.client JavaScriptObject toSource

Introduction

In this page you can find the example usage for com.google.gwt.core.client JavaScriptObject toSource.

Prototype

public native String toSource() ;

Source Link

Document

Call the toSource() on the JSO.

Usage

From source file:com.cimpoint.mes.server.servlets.CustomCodeServlet.java

License:Open Source License

protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
    if (request.getParameter("action").equals("GetModule")) {
        PrintWriter out = response.getWriter();
        DynamicForm form = createTestForm();
        JavaScriptObject jsObj = form.getJsObj();
        String src = jsObj.toSource();
        out.write(src);/*from  ww  w . j  av  a 2  s . c om*/
    }
}