selectLayoutManager.addScriptListener(new JavaScriptListener("onChange", "this.form.submit()"));
    protected SComponent createExample() {        selectLayoutManager.addItemListener(new ItemListener() {            public void itemStateChanged(ItemEvent e) {                panel.remove(1);                panel.add(demoPanels[selectLayoutManager.getSelectedIndex()]);            }        });        panel.add(selectLayoutManager);        panel.add(demoPanels[0]);        return panel;    }