Community
Participate
Working Groups
In RWT radio-buttons of the same Group behave differently regarding the selection event handling than in SWT. In SWT both buttons the one that gets selected and the one that gets unselected notify their attached selection listeners. In RWT only that one that gets selected notifies the attached selection listeners. Snippet to reproduce: Display display = new Display(); Shell shell = new Shell( display, SWT.NONE ); shell.setLayout( new FillLayout( SWT.VERTICAL ) ); SelectionAdapter listener = new SelectionAdapter() { public void widgetSelected( final SelectionEvent evt ) { Button button = ( Button )evt.widget; String text = button.getText(); System.out.println( text + " is selected: " + button.getSelection() ); } }; Button radio1 = new Button( shell, SWT.RADIO ); radio1.setText( "button1" ); radio1.addSelectionListener( listener ); Button radio2 = new Button( shell, SWT.RADIO ); radio2.setText( "button2" ); radio2.addSelectionListener( listener ); Button radio3 = new Button( shell, SWT.RADIO ); radio3.setText( "button3" ); radio3.addSelectionListener( listener ); shell.setSize( 200, 200 ); shell.open(); while( !shell.isDisposed() ) { if( !display.readAndDispatch() ) { display.sleep(); } }
Created attachment 110319 [details] testcase testcase
I really wonder why this bug depends on bug 250162
(In reply to comment #2) > I really wonder why this bug depends on bug 250162 Becuase resolving bug 250162 will require a re-write of the client-side readio button. Then we are independant of qooxdoo and/or browser behavior.
Created attachment 125226 [details] Proposed patch
Fixed in CVS HEAD.