Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext GWT Premium Member
    Join Date
    Dec 2011
    Location
    Earth
    Posts
    243
    Vote Rating
    1
    nbuesing is on a distinguished road

      0  

    Default using Dialog.setHeaderVisible(false) causes app to not start (in prod mode)

    using Dialog.setHeaderVisible(false) causes app to not start (in prod mode)


    If you have dialog.setHeaderVisible(false) in your code, it will compile into javascript that will cause the application to not start.

    If your code has 'dialog.setHeader(false)' in the code (and you don't have to display the dialog), you will get the following javascript error when you try to run your application in production mode.
    'visMode' is null or not an object
    And the application will not display (in the provided example, "Hello World" will not appear on the screen).

    Again, this is only in production mode, this bug cannot be reproduced in development mode:
    Here is my Entry Point, I have zipped up my .gwt.xml, class, and src folder structure as well.

    Code:
    package com.buesing.gwt.client.widget;
    
    
    import com.google.gwt.core.client.EntryPoint;
    import com.google.gwt.user.client.ui.HTML;
    import com.google.gwt.user.client.ui.RootPanel;
    import com.google.gwt.user.client.ui.Widget;
    import com.sencha.gxt.widget.core.client.Dialog;
    import com.sencha.gxt.widget.core.client.container.Viewport;
    
    
    public class DialogHeaderHiding implements EntryPoint {
    
    
    
    
    	private Dialog dialog = new Dialog();
    	
    	private Widget asWidget() {
    		
    		// comment this line out, application works in production mode.
    
    		dialog.setHeaderVisible(false);
    		
    		return new HTML("Hello World!");
    	}
    
    
    
    
    	public void onModuleLoad() {
    		Viewport viewport = new Viewport();
    		viewport.add(asWidget());
    		RootPanel.get().add(viewport);
    	}
    }
    DialogHeaderHiding.zip

  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


    I'm not noticing the problem you're describing when I test it against Beta 3. If you're still having this problem with Beta 3, what browser and OS are you using?

  3. #3
    Ext GWT Premium Member
    Join Date
    Dec 2011
    Location
    Earth
    Posts
    243
    Vote Rating
    1
    nbuesing is on a distinguished road

      0  

    Default


    I was unaware that beta3 came out on Tuesday. I will download and retest.

Thread Participants: 1