Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Development Error when RadioGroupItem is disabled.

    Hi,

    I am getting following development error when I disable radioGroupItem in FF. It works fine with IE.


    00:01:29.156 [ERROR] 17:47:01.802:TMR0:WARN:RadioItem:isc_RadioItem_0[$540FW]:Width now:96
    <pre>com.smartgwt.client.core.JsObject$SGWT_WARN: 17:47:01.802:TMR0:WARN:RadioItem:isc_RadioItem_0[$540FW]:Width now:96
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:132)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    at com.smartgwt.client.widgets.BaseWidget.getInnerHTML(BaseWidget.java)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
    at java.lang.Thread.run(Thread.java:619)</pre>



    I am using following browsers - FF 11 & 17 and IE 8.
    SmartClient Version: v8.3p_2013-02-08/LGPL Development Only (built 2013-02-08)


    Here is the sample code:-

    Code:
    package org.yournamehere.client;
    
    import com.google.gwt.core.client.EntryPoint;
    import com.google.gwt.user.client.ui.RootPanel;
    import com.smartgwt.client.types.Alignment;
    import com.smartgwt.client.types.TitleOrientation;
    import com.smartgwt.client.widgets.Button;
    import com.smartgwt.client.widgets.events.ClickEvent;
    import com.smartgwt.client.widgets.events.ClickHandler;
    import com.smartgwt.client.widgets.form.DynamicForm;
    import com.smartgwt.client.widgets.form.fields.RadioGroupItem;
    import com.smartgwt.client.widgets.layout.VLayout;
    
    public class MainEntryPoint implements EntryPoint {
    
        private boolean isEnable = false;
        private RadioGroupItem group = new RadioGroupItem();
        private VLayout vLayout = new VLayout();
    
        public MainEntryPoint() {
        }
    
        public void onModuleLoad() {
    
    
            Button b = new Button("Refresh");
            b.addClickHandler(new ClickHandler() {
    
                public void onClick(ClickEvent event) {
                    isEnable = !isEnable;
                    group.setDisabled(isEnable);
                }
            });
    
            DynamicForm groupBy = new DynamicForm();
            groupBy.setTitleOrientation(TitleOrientation.LEFT);
            groupBy.setTitle("Group By");
            groupBy.setGroupTitle("Group By" + ":");
            groupBy.setAlign(Alignment.LEFT);
            groupBy.setTitleSuffix(":&nbsp;");
            groupBy.setIsGroup(true);
            groupBy.setWidth(239);
            group.setValueMap(new String[]{"FW", "Month", "Year"});
            group.setShowTitle(false);
            groupBy.setFields(group);
            vLayout.setHeight(450);
            vLayout.setWidth(300);
            vLayout.setMembersMargin(10);
            vLayout.addMembers(groupBy, b);
            vLayout.draw();
            RootPanel.get().add(vLayout);
    
        }
    }

    Thanks in Advance...

    #2
    These are harmless debug messages and were removed a couple of days ago.

    Comment


      #3
      Thanks for quick response. :)

      Comment

      Working...
      X