Hi all,I've got a problem with the changeSelection event. I've receive the data from the event (is a radio button) and call an object method (i.e. getModel)... the result is an error.
http://demo.qooxdoo.org/current/playground/#%7B%22code%22%3A%20%22var%2520test%2520%253D%2520new%2520qx.data.Array(%250D%250A%2520%2520new%2520qx.data.Array(%2522tab%2522%252C%2522Tabulator%2522)%252C%250D%250A%2520%2520new%2520qx.data.Array(%2522semikolon%2522%252C%2522Semikolon%2520(%253B)%2522)%252C%250D%250A%2520%2520new%2520qx.data.Array(%2522comma%2522%252C%2522Komma%2520(%252C)%2522)%252C%250D%250A%2520%2520new%2520qx.data.Array(%2522space%2522%252C%2522Leerzeichen%2522)%252C%250D%250A%2520%2520new%2520qx.data.Array(%2522user%2522%252C%2522Zeichenfolge%2522)%250D%250A)%250D%250A%250D%250A%252F%252F%2520Document%2520is%2520the%2520application%2520root%250D%250Avar%2520doc%2520%253D%2520this.getRoot()%253B%250D%250A%250D%250Avar%2520layoutRadioGroup%2520%253D%2520new%2520qx.ui.layout.Grid(5%252C5)%253B%250D%250Avar%2520delimiterRadioGroup%2520%253D%2520new%2520qx.ui.form.RadioButtonGroup().set(%257B%250D%250A%2520%2520layout%253A%2520layoutRadioGroup%250D%250A%257D)%253B%250D%250AdelimiterRadioGroup.addListener(%2522changeSelection%2522%252Cfunction(event)%257B%250D%250A%2520%2520var%2520radioButton%2520%253D%2520event.getData()%253B%250D%250A%2520%2520alert(radioButton)%253B%250D%250A%2520%2520%252F%252Falert(radioButton.getModel())%253B%250D%250A%257D)%253B%250D%250A%250D%250Adoc.add(delimiterRadioGroup%252C%257B%250D%250A%2520%2520top%253A%252020%252C%250D%250A%2520%2520left%253A%252020%250D%250A%257D)%253B%250D%250A%250D%250Avar%2520position%2520%253D%25200%253B%250D%250Atest.forEach(function(item)%257B%250D%250A%2520%2520var%2520radioButton%2520%253D%2520new%2520qx.ui.form.RadioButton(item.getItem(1)).set(%257B%250D%250A%2520%2520%2520%2520model%253A%2520item.getItem(0)%250D%250A%2520%2520%257D)%253B%250D%250A%2520%2520%250D%250A%2520%2520var%2520positionRow%2520%253D%2520Math.floor(position%252F2)%253B%250D%250A%2520%2520var%2520positionColumn%2520%253D%2520position%2520%2525%25202%253B%250D%250A%2520%2520delimiterRadioGroup.add(radioButton%252C%257B%250D%250A%2520%2520%2520%2520row%253A%2520positionRow%252C%2520column%253A%2520positionColumn%250D%250A%2520%2520%257D)%253B%250D%250A%2520%2520%250D%250A%2520%2520position%252B%252B%253B%250D%250A%257D)%253B%250D%250A%250D%250A%250D%250A%22%7D <http://demo.qooxdoo.org/current/playground/#%7B%22code%22%3A%20%22var%2520test%2520%253D%2520new%2520qx.data.Array%28%250D%250A%2520%2520new%2520qx.data.Array%28%2522tab%2522%252C%2522Tabulator%2522%29%252C%250D%250A%2520%2520new%2520qx.data.Array%28%2522semikolon%2522%252C%2522Semikolon%2520%28%253B%29%2522%29%252C%250D%250A%2520%2520new%2520qx.data.Array%28%2522comma%2522%252C%2522Komma%2520%28%252C%29%2522%29%252C%250D%250A%2520%2520new%2520qx.data.Array%28%2522space%2522%252C%2522Leerzeichen%2522%29%252C%250D%250A%2520%2520new%2520qx.data.Array%28%2522user%2522%252C%2522Zeichenfolge%2522%29%250D%250A%29%250D%250A%250D%250A%252F%252F%2520Document%2520is%2520the%2520application%2520root%250D%250Avar%2520doc%2520%253D%2520this.getRoot%28%29%253B%250D%250A%250D%250Avar%2520layoutRadioGroup%2520%253D%2520new%2520qx.ui.layout.Grid%285%252C5%29%253B%250D%250Avar%2520delimiterRadioGroup%2520%253D%2520new%2520qx.ui.form.RadioButtonGroup%28%29.set%28%257B%250D%250A%2520%2520layout%253A%2520layoutRadioGroup%250D%250A%257D%29%253B%250D%250AdelimiterRadioGroup.addListener%28%2522changeSelection%2522%252Cfunction%28event%29%257B%250D%250A%2520%2520var%2520radioButton%2520%253D%2520event.getData%28%29%253B%250D%250A%2520%2520alert%28radioButton%29%253B%250D%250A%2520%2520%252F%252Falert%28radioButton.getModel%28%29%29%253B%250D%250A%257D%29%253B%250D%250A%250D%250Adoc.add%28delimiterRadioGroup%252C%257B%250D%250A%2520%2520top%253A%252020%252C%250D%250A%2520%2520left%253A%252020%250D%250A%257D%29%253B%250D%250A%250D%250Avar%2520position%2520%253D%25200%253B%250D%250Atest.forEach%28function%28item%29%257B%250D%250A%2520%2520var%2520radioButton%2520%253D%2520new%2520qx.ui.form.RadioButton%28item.getItem%281%29%29.set%28%257B%250D%250A%2520%2520%2520%2520model%253A%2520item.getItem%280%29%250D%250A%2520%2520%257D%29%253B%250D%250A%2520%2520%250D%250A%2520%2520var%2520positionRow%2520%253D%2520Math.floor%28position%252F2%29%253B%250D%250A%2520%2520var%2520positionColumn%2520%253D%2520position%2520%2525%25202%253B%250D%250A%2520%2520delimiterRadioGroup.add%28radioButton%252C%257B%250D%250A%2520%2520%2520%2520row%253A%2520positionRow%252C%2520column%253A%2520positionColumn%250D%250A%2520%2520%257D%29%253B%250D%250A%2520%2520%250D%250A%2520%2520position%252B%252B%253B%250D%250A%257D%29%253B%250D%250A%250D%250A%250D%250A%22%7D>
(line 19 produce the error) Is there something wrong with my code? Thanks for the help. Daniel
------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
