Announcement

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

    com.smartgwt.client.widgets.form.fields.events.Key UpHandler and ":", ";" symbols

    Hello everyone,
    I faced with on problem and want to make sure is it a defect or troubles in my code. Might be some one of you faced with that.

    I have a TextItem field:
    Code:
    final TextItem regUsername = new TextItem("regName", "Username");
    	regUsername.setRequired(true);
    for this field I added KeyUpHandler:
    Code:
    class MyHandler implements ClickHandler, KeyUpHandler {
    
    	    public void onClick(ClickEvent event) {
    		sendRequestToServer();
    
    	    }
    
    	    public void onKeyUp(KeyUpEvent event) {
    
    		if (event.getKeyName().equals("Enter"))
    		    sendRequestToServer();
    Then run project and try to push ';' or ':' (shift+';' ) buttons. After that I'm getting Null pointer:

    Code:
    ava.lang.NullPointerException: null
        at com.rfo.cabinet.client.LoginForm$1MyHandler.onKeyUp(LoginForm.java:91)
        at com.smartgwt.client.widgets.form.fields.events.KeyUpEvent.dispatch(KeyUpEvent.java:96)
        at com.smartgwt.client.widgets.form.fields.events.KeyUpEvent.dispatch(KeyUpEvent.java:1)
        at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.fireEvent(HandlerManager.java:65)
        at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access$1(HandlerManager.java:53)
        at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:178)
        at com.smartgwt.client.core.DataClass.fireEvent(DataClass.java:197)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        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:157)
        at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
        at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
        at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264)
        at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
        at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
        at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        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:157)
        at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1668)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
        at java.lang.Thread.run(Unknown Source)
    Somebode knows what is that? or it is a defect?

    #2
    Thanks for letting us know -- this is a bug -- we've put in a fix for this which will be present in our next nightly build

    Comment


      #3
      great! Thank you. But where I can get the latest build?

      Comment


        #4
        http://www.smartclient.com/builds/

        Comment

        Working...
        X