Success! Looks like we've fixed this one. According to our records the fix was applied for EXTGWT-2155 in a recent build.
  1. #1
    Ext GWT Premium Member gdlm's Avatar
    Join Date
    Jan 2012
    Location
    Belgium
    Posts
    208
    Vote Rating
    4
    gdlm is on a distinguished road

      0  

    Default A disabled radio button can be selected by clicking its label

    A disabled radio button can be selected by clicking its label


    Version of Ext GWT
    3.0.0

    Browser versions and OS
    FireFox 11, IE8, Chrome 19 on Windows 7 Pro

    Virtual Machine
    No

    Description
    Clicking the text of a disabled radio button selects it

    Run mode
    Development as well as production mode

    Steps to reproduce the problem
    1. Run the provided example
    2. Click the text "Choice 2"
    Expected result
    Nothing happens.

    Actual result
    (The radio button icon beside) "Choice 2" is selected.

    Test case
    Code:

    Code:
    public class CheckBoxAndRadioExample implements EntryPoint, IsWidget {
    
        public void onModuleLoad() {
            RootPanel.get().add(asWidget());
        }
    
        public Widget asWidget() {
        VerticalLayoutContainer container = new VerticalLayoutContainer();
            final Radio radio11 = new Radio();
            radio11.setBoxLabel("Choice 1");
            final Radio radio12 = new Radio();
            radio12.setEnabled(false);
            radio12.setBoxLabel("Choice 2");
            final Radio radio13 = new Radio();
            radio13.setBoxLabel("Choice 3");
            final ToggleGroup toggleGroup02 = new ToggleGroup();
            toggleGroup02.add(radio11);
            toggleGroup02.add(radio12);
            toggleGroup02.add(radio13);
            toggleGroup02.setValue(radio11);
    
            HBoxLayoutContainer radioContainer2 = new HBoxLayoutContainer();
            radioContainer2.setBorders(true);
            radioContainer2.add(radio11, new BoxLayoutContainer.BoxLayoutData(new Margins(4)));
            radioContainer2.add(radio12, new BoxLayoutContainer.BoxLayoutData(new Margins(4)));
            radioContainer2.add(radio13, new BoxLayoutContainer.BoxLayoutData(new Margins(4)));
            container.add(new Label("Another bug found (in 3.0.0): You can select the disabled radio button by clicking the text"),
                new VerticalLayoutContainer.VerticalLayoutData(1, -1, new Margins(0, 0, 10, 0)));
            container.add(radioContainer2, new VerticalLayoutContainer.VerticalLayoutData(1, -1, new Margins(0, 0, 10, 0)));
    
            SimpleContainer simple = new SimpleContainer();
            simple.add(container, new MarginData(20));
            return simple;
        }
    }

    Remark:
    Unfortunately, it seems GXT is quite sensitive for regression bugs.
    By fixing bug [EXTGWT-1666], bug [EXTGWT-1844] was introduced (which is by the way still marked as [Open] although it was mentioned in the release notes of RC2 as fixed)
    This new bug is clearly also due to the fix of bug [EXTGWT-1666].

  2. #2
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    Thanks for the report. I've included the details you provided and the regression chain in the ticket. I'll update this thread when we have a fix ready.

  3. #3
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    Apologies for the delay in update. This issue should be fixed in the latest code in SVN.

Thread Participants: 1