Announcement

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

    TileGrid and custom tiles

    Hi,

    We're running SmartGWT 4.1d pre-release version.

    We're currently working on a tile grid which needs to display tiles composed of an image on the left and two labels on the right.

    Overriding TileGrid.getTile(int recordNum) did the trick for customizing the layout. Instead of the SimpleTile normally created, we return a custom Canvas.
    Layout is ok with that but we lost the default capabilities of SimpleTile like selection, hover styling, ...

    Looking in previous posts, you recommend to override SimpleTile instead of Canvas in the custom tile class: what we did but didn't work as it raises several exceptions like

    Code:
    com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(6383), JavaScript object(6324), JavaScript object(10817)]): Unable to get property 'valuesShowDown' of undefined or null reference
    	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
    	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
    	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
    	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
    	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:242)
    	at sun.reflect.GeneratedMethodAccessor315.invoke(Unknown Source)
    	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:172)
    	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
    	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
    	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    	at java.lang.Thread.run(Thread.java:662)
    The custom TileGrid code:
    Code:
    @Override
    	public Canvas getTile(int recordNum) {
    		
    		if (tileCache.get(recordNum) != null)
    			return tileCache.get(recordNum);
    		
    		CaseElementTile elemTile = new CaseElementTile();
    		elemTile.setData(getRecordList().get(recordNum));
    		tileCache.put(recordNum, elemTile);
    		return elemTile;
    	}
    Custom tile constructor code:
    Code:
    public CaseElementTile() {
    		
    		form = new DynamicForm();
    		form.setNumCols(2);
    		form.setHeight(40);
    		form.setCellPadding(3);
    
    		form.setColWidths("45", "*");
    		elementImg = new Img();
    
    		elementImageItem = new CanvasItem("ICON");
    		elementImageItem.setWidth(35);
    		elementImageItem.setHeight(35);
    		elementImageItem.setShouldSaveValue(true);
    		elementImageItem.setShowTitle(false);
    		elementImageItem.setCanvas(elementImg);
    
    		label = new Label("<No label>");
    		label.setHeight(15);
    		reference = new Label("<No ref>");
    		reference.setHeight(15);
    		VLayout v = new VLayout(2);
    		v.setHeight(35);
    		v.setAlign(VerticalAlignment.CENTER);
    		v.setMembers(label, reference);
    		labelAndRef = new CanvasItem("labelAndRef");
    		labelAndRef.setShouldSaveValue(true);
    		labelAndRef.setShowTitle(false);
    		labelAndRef.setCanvas(v);
    
    		
    		form.setFields(elementImageItem, labelAndRef);
    		addChild(form);
    	}
    Help would be appreciated.
    Thanks in advance

    Regards
    Antoine

    #2
    You're mixing two different techniques in an invalid way:

    1. as the new 4.1 example shows, you can use tileConstructor to provide a custom class - this is the right approach to use to retain the SimpleTile behaviors

    2. if you were to use the older getTile() approach, you should not subclass SimpleTile

    Comment


      #3
      Thanks for the quick answer and sorry for posting in the wrong place.

      I've tried a custom tileConstructor already, but with a subclass of DynamicForm; as it is said in the javadoc, DataBoundComponent implementations like DynamicForm will have data provided with setValues.

      What if my tile constructor is a subclass of SimpleTile? How do I get the data? (getAttributeAsRecord doesn't exist on this one).

      Comment


        #4
        Sorry, getAttributeAsRecord() should be there, we'll add it. In the meantime, either of the following should work:

        Code:
        getAttributeAsMap("record");
        new Record(getAttributeAsJavaScriptObject("record"));

        Comment


          #5
          Ok, it works.

          Now I'm trying to display a very simple custom tile:

          Code:
          public class CaseElementTile extends SimpleTile {
          
          	Label					label;
          
          	public CaseElementTile() {
          
          		label = new Label("<No label>");
          		label.setHeight(15);
          		
          		CanvasItem i = new CanvasItem();
          		i.setCanvas(label);
          		setCanvasItem(i);
          	}
          }
          TileGrid is initialized like this:
          Code:
          ...
                  public interface CaseElementTileMetaFactory extends BeanFactory.MetaFactory {
          		BeanFactory<CaseElementTile> getCaseElementTileFactory();
          	}
          
          	protected void enableReflection() {
          		if (!enabledReflection) {
          			GWT.create(CaseElementTileMetaFactory.class);
          			enabledReflection = true;
          		}
          	}
          
          	public CaseElementTileGrid() {
          		
          		enableReflection();
          		setTileWidth(150);
          		setTileHeight(60);
          		setWidth100();
          		setHeight100();
          		setCanReorderTiles(false);
          		setAutoFetchData(true);
          		setCanFocus(false);
          		setDataSource(DataSource.get(DSCaseElement.DS_NAME));
          		setSelectionType(SelectionStyle.SINGLE);
          		setTileConstructor(CaseElementTile.class.getName());
          	}
          But the tile display doesn't take into account the custom layout: what I get is the record values displayed vertically, just like when you don't declare DetailViewerField's for the grid.

          Also, to change the content of the label when tile is created, I override getTile(int numRecord) this way:
          Code:
                  @Override
          	public Canvas getTile(int recordNum) {
          		CaseElementTile t = (CaseElementTile) super.getTile(recordNum);
          		t.applyRecord();
          		return t;
          	}
          CaseElementTile.applyRecord() retrieves the record and call label.setContents()
          Is it the right way to do it?

          Comment


            #6
            We don't have enough code to tell what you're trying to do - your custom tile class seems to create a Label in a CanvasItem, but no DynamicForm, and the CanvasItem is seemingly never added to anything - so that would not be expected to affect the default appearance of the tiles.

            Comment


              #7
              The CanvasItem is added to the tile with setCanvasItem. If I use addChild instead, it throws Js exceptions.
              Why a DynamicForm would be necessary here?

              Maybe the easiest would be to tell me where I can find a working example. I couldn't find any in the latest docs of 4.1d, neither in showcase.

              Thanks in advance

              Comment


                #8
                Take a look at the docs for CanvasItem - you seem to think it would add a CanvasItem to an arbitrary Canvas, but it doesn't do anything like that, and isn't normally set by application code.

                You would need to use a DynamicForm and add it as a child, or add the Label directly.

                We'd not sure why you would have trouble finding the samples in the 4.1d Showcase - they are under "Data View / Tiling", with all the other TileGrid samples.

                Comment


                  #9
                  Ok I'll check the showcase.
                  If I use addChild to add the label (or a DynamicForm) directly to the SimpleTile, it raises JS exceptions like the first one on my first post. Exceptions are about valueShowdown and getID not found.

                  Comment


                    #10
                    That was happening in your first code sample because you weren't using tileConstructor. If you think you can get the same error with correct usage, we'll need to see code we can run to replicate the problem.

                    Comment


                      #11
                      I get the same problem when using tileConstructor. In my latest code post, if you change setCanvasItem by addChild(label), I guess the problem will occur.

                      If not I'll post the complete code.

                      Comment


                        #12
                        We'll definitely need complete code. We have multiple internal tests that do seemingly the same thing already, and work fine.

                        Comment


                          #13
                          Hi

                          I reproduce the problem with the following code.
                          First the TileGrid:
                          Code:
                          package com.fircosoft.cdb.client.investigation;
                          
                          import com.fircosoft.cdb.shared.utils.ds.gen.DSCaseElement;
                          import com.google.gwt.core.client.GWT;
                          import com.smartgwt.client.bean.BeanFactory;
                          import com.smartgwt.client.data.DataSource;
                          import com.smartgwt.client.types.SelectionStyle;
                          import com.smartgwt.client.widgets.tile.TileGrid;
                          
                          public class CaseElementTileGrid extends TileGrid {
                          
                          	private static boolean	enabledReflection	= false;
                          
                          	public interface CaseElementTileMetaFactory extends BeanFactory.MetaFactory {
                          		BeanFactory<CaseElementTile> getCaseElementTileFactory();
                          	}
                          
                          	protected void enableReflection() {
                          		if (!enabledReflection) {
                          			GWT.create(CaseElementTileMetaFactory.class);
                          			enabledReflection = true;
                          		}
                          	}
                          
                          	public CaseElementTileGrid() {
                          		
                          		enableReflection();
                          		setTileWidth(150);
                          		setTileHeight(60);
                          		setWidth100();
                          		setHeight100();
                          		setCanReorderTiles(false);
                          		setAutoFetchData(true);
                          		setCanFocus(false);
                          		setDataSource(DataSource.get(DSCaseElement.DS_NAME));
                          		setSelectionType(SelectionStyle.SINGLE);
                          		setTileConstructor(CaseElementTile.class.getName());
                          	}
                          }
                          The Tile:
                          Code:
                          package com.fircosoft.cdb.client.investigation;
                          
                          import com.smartgwt.client.types.VerticalAlignment;
                          import com.smartgwt.client.widgets.Img;
                          import com.smartgwt.client.widgets.Label;
                          import com.smartgwt.client.widgets.form.DynamicForm;
                          import com.smartgwt.client.widgets.form.fields.CanvasItem;
                          import com.smartgwt.client.widgets.layout.VLayout;
                          import com.smartgwt.client.widgets.tile.SimpleTile;
                          
                          public class CaseElementTile extends SimpleTile {
                          
                          	DynamicForm				form;
                          	
                          	CanvasItem				elementImageItem;
                          	Img						elementImg;
                          
                          	CanvasItem				labelAndRef;
                          	Label					label, reference;
                          
                          	public CaseElementTile() {
                          
                          		form = new DynamicForm();
                          		form.setNumCols(2);
                          		form.setHeight(35);
                          		form.setCellPadding(3);
                          		
                          		form.setColWidths("45", "*");
                          		elementImg = new Img();
                          		
                          		elementImageItem = new CanvasItem("image");
                          		elementImageItem.setWidth(30);
                          		elementImageItem.setHeight(35);
                          		elementImageItem.setShouldSaveValue(true);
                          		elementImageItem.setShowTitle(false);
                          		elementImageItem.setCanvas(elementImg);
                          
                          		label = new Label("<No label>");
                          		label.setHeight(15);
                          		reference = new Label("<No ref>");
                          		reference.setHeight(15);
                          		VLayout v = new VLayout(2);
                          		v.setHeight(35);
                          		v.setAlign(VerticalAlignment.CENTER);
                          		v.setMembers(label, reference);
                          		labelAndRef = new CanvasItem("labelAndRef");
                          		labelAndRef.setShouldSaveValue(true);
                          		labelAndRef.setShowTitle(false);
                          		labelAndRef.setCanvas(v);
                          
                          		form.setFields(elementImageItem, labelAndRef);
                          
                          		addChild(form);
                          	}
                          	
                          }
                          Instanciation of CaseElementTileGrid is done with no extra setter called; it's added to a VLayout.

                          Here is the exception stack I get when page is displayed:
                          Code:
                          com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(12709), JavaScript object(27), JavaScript object(12710)]): Unable to get property 'valuesShowDown' of undefined or null reference
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
                          	at com.smartgwt.client.widgets.tile.TileGrid.getTile(TileGrid.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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
                          	at java.lang.Thread.run(Thread.java:662)
                          com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(9104), JavaScript object(9042), JavaScript object(12703)]): Unable to get property 'getID' of undefined or null reference
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
                          	at java.lang.Thread.run(Thread.java:662)
                          com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(12709), JavaScript object(27), JavaScript object(12797)]): Unable to get property 'valuesShowDown' of undefined or null reference
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
                          	at com.smartgwt.client.widgets.tile.TileGrid.getTile(TileGrid.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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
                          	at java.lang.Thread.run(Thread.java:662)
                          com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(9104), JavaScript object(9042), JavaScript object(12791)]): Unable to get property 'getID' of undefined or null reference
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
                          	at java.lang.Thread.run(Thread.java:662)
                          com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(12709), JavaScript object(27), JavaScript object(13504)]): Unable to get property 'valuesShowDown' of undefined or null reference
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
                          	at com.smartgwt.client.widgets.tile.TileGrid.getTile(TileGrid.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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
                          	at java.lang.Thread.run(Thread.java:662)
                          com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(9104), JavaScript object(9042), JavaScript object(13498)]): Unable to get property 'getID' of undefined or null reference
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
                          	at java.lang.Thread.run(Thread.java:662)
                          com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(12709), JavaScript object(27), JavaScript object(13581)]): Unable to get property 'valuesShowDown' of undefined or null reference
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
                          	at com.smartgwt.client.widgets.tile.TileGrid.getTile(TileGrid.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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
                          	at java.lang.Thread.run(Thread.java:662)
                          com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(9104), JavaScript object(9042), JavaScript object(13575)]): Unable to get property 'getID' of undefined or null reference
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
                          	at java.lang.Thread.run(Thread.java:662)
                          com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(12709), JavaScript object(27), JavaScript object(13661)]): Unable to get property 'valuesShowDown' of undefined or null reference
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
                          	at com.smartgwt.client.widgets.tile.TileGrid.getTile(TileGrid.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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
                          	at java.lang.Thread.run(Thread.java:662)
                          com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(9104), JavaScript object(9042), JavaScript object(13655)]): Unable to get property 'getID' of undefined or null reference
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
                          	at java.lang.Thread.run(Thread.java:662)
                          com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(12709), JavaScript object(27), JavaScript object(13738)]): Unable to get property 'valuesShowDown' of undefined or null reference
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
                          	at com.smartgwt.client.widgets.tile.TileGrid.getTile(TileGrid.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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
                          	at java.lang.Thread.run(Thread.java:662)
                          com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(9104), JavaScript object(9042), JavaScript object(13732)]): Unable to get property 'getID' of undefined or null reference
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
                          	at java.lang.Thread.run(Thread.java:662)
                          com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(12709), JavaScript object(27), JavaScript object(13818)]): Unable to get property 'valuesShowDown' of undefined or null reference
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
                          	at com.smartgwt.client.widgets.tile.TileGrid.getTile(TileGrid.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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
                          	at java.lang.Thread.run(Thread.java:662)
                          com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(9104), JavaScript object(9042), JavaScript object(13812)]): Unable to get property 'getID' of undefined or null reference
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
                          	at java.lang.Thread.run(Thread.java:662)
                          com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(12709), JavaScript object(27), JavaScript object(13895)]): Unable to get property 'valuesShowDown' of undefined or null reference
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
                          	at com.smartgwt.client.widgets.tile.TileGrid.getTile(TileGrid.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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
                          	at java.lang.Thread.run(Thread.java:662)
                          com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(9104), JavaScript object(9042), JavaScript object(13889)]): Unable to get property 'getID' of undefined or null reference
                          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
                          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
                          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
                          	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:242)
                          	at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
                          	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:172)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
                          	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
                          	at java.lang.Thread.run(Thread.java:662)

                          Comment


                            #14
                            It turns out that the problem is triggered by the call to

                            Code:
                            addChild(form);
                            in the CaseElementTile constructor.

                            Given the way that the tiles are created, the constructor executes too soon for addChild() to work properly -- calling addChild() triggers some logic that can't be set up properly until after the constructor has run.

                            To work around this, you could delay the addChild() call until later. One way is to do it in a callback when the tile is drawn -- your constructor would then look something like this:

                            Code:
                            public CaseElementTile() {
                                form = new DynamicForm();
                                form.setNumCols(2);
                                form.setHeight(35);
                                form.setCellPadding(3);
                            		
                                form.setColWidths("45", "*");
                                elementImg = new Img();
                            		
                                elementImageItem = new CanvasItem("image");
                                elementImageItem.setWidth(30);
                                elementImageItem.setHeight(35);
                                elementImageItem.setShouldSaveValue(true);
                                elementImageItem.setShowTitle(false);
                                elementImageItem.setCanvas(elementImg);
                            
                                label = new Label("<No label>");
                                label.setHeight(15);
                                reference = new Label("<No ref>");
                                reference.setHeight(15);
                                VLayout v = new VLayout(2);
                                v.setHeight(35);
                                v.setAlign(VerticalAlignment.CENTER);
                                v.setMembers(label, reference);
                                labelAndRef = new CanvasItem("labelAndRef");
                                labelAndRef.setShouldSaveValue(true);
                                labelAndRef.setShowTitle(false);
                                labelAndRef.setCanvas(v);
                            
                                form.setFields(elementImageItem, labelAndRef);
                            
                                addDrawHandler(new DrawHandler() {
                                    public void onDraw (DrawEvent event) {
                                        addChild(form);
                                    }
                                });
                            }
                            This will avoid the exception you triggered -- it will at least draw your custom Tile class successfully. I didn't set up a real DataSource to populate the Tile with real data, so I didn't test it completely.

                            Comment


                              #15
                              Thanks, it works.

                              Now the child (DynamicForm) is drawn without any exception, but the default rendering of fields is still there. How can I deactivate it?
                              I tried with
                              Code:
                              TileGrid.setFields(new DetailViewerField[] {});
                              and by removing all children of the custom tile before adding the form, without success.

                              Comment

                              Working...
                              X