Is there a way to create GWT Widgets using JavaScript?
===

Is there a way to create GWT Widgets using JavaScript (with less effort)...for example like the one below? 
Since GWT compiles to JavaScript, this should be possible, has anybody attempted this earlier... I love GWT widgets and JavaScripting, but not Java :)

    function doSomething(){
        layout = new FlexTable();
        layout.spacing = 6;
        cellFormatter = layout.getFlexCellFormatter();
        // Add a title to the form
        layout.setHTML(0, 0, 'form title');
        cellFormatter.setColSpan(0, 0, 2);
        cellFormatter.setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_CENTER);
        //......
        // Wrap the content in a DecoratorPanel
        decPanel = new DecoratorPanel();
        decPanel.setWidget(layout);
    }
