Results 1 to 5 of 5

Thread: Stange Black Cloud after Event fired

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default Stange Black Cloud after Event fired

    Hello,

    we have got a 'Black Cloud' after Event have been fired. No logs :-( .... any idea ?

    thanx for help
    Nicolas
    Attached Images Attached Images

  2. #2
    Sencha User
    Join Date
    Jun 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default GXT 2

    Sorry if it looks like bad forum for this Thread :-(

  3. #3
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Moved to GWT 2 Q&A forum.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  4. #4
    Sencha User
    Join Date
    Jun 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default Some news

    The problem exists when i call a rpc method in the success of the handler .. :-(


    When i remove updateLimitationInformation() i don't have the black cloud.

    Code:
    AlephBusEvent.getInstance().addHandler(SearchEvent.TYPE,
    				new SearchEventHandler() {
    
    
    					@Override
    					public void onGetPersonna(
    							ArrayList<PersonnaInterface> personnas) {
    						updateLimitationInformation();
    					}
    				}); 
    
    private void updateLimitationInformation() {
    
    
    		PersistanceService.Util.getInstance()
    				.getLimitationInformation(user,
    						new AsyncCallback<String>() {
    
    
    							@Override
    							public void onFailure(
    									Throwable caught) {
    								counterButton.setTitle("error");
    								counterButton.setText("0");
    								counterButton.setVisible(true);
    							}
    
    
    							@Override
    							public void onSuccess(String result) {
    								counterButton.setText(result);
    								counterButton.setVisible(true);
    							}
    						});
    	}

  5. #5
    Sencha User
    Join Date
    Jun 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default RESOLVED

    theSetVisible was the point, removing the setVisible() and it is ok :-S

    Lesson 1 : don"t use setVisible() if not needed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •