Problems with Javascript call from CustomComponent

Hey,

I’m trying to implement a custom component in Vaadin. In my application are label and a button. The widgetset gets build and loaded.


public class VGrid
	extends com.google.gwt.user.client.ui.FocusWidget
	implements Paintable
{
	String					uidlId;
	ApplicationConnection	client;

	public VGrid()
	{
		uidlId = Document.get().createUniqueId();
		DivElement div = Document.get().createDivElement();
		div.setId(uidlId);
		setElement(div);
		
		doLoadGrid();
	}

	@Override
	public void updateFromUIDL(UIDL uidl, ApplicationConnection client)
	{
		if (client.updateComponent(this, uidl, true))
			return;

		this.client = client;
		uidlId = uidl.getId();
	}
	
	private void doLoadGrid()
	{
		doLoadGrid(uidlId);
	}
	
	private native void doLoadGrid(String gridId)
	/*-{
		initGrid(gridId);
	}-*/;
}

But right now, the Code from the initGrid()-Function isn’t getting called. Even if I replace it with an alert() it isn’t getting called.

Much worse however is, that the window remains empty. When using firebug though, I can see that the components are there but their size is set to 0( height and width). So it seems like the widgetset compilation for the custom component isn’t working correctly.

Am I missing something in the code for the custom component? Do I have to declare someting special for Javascript functions other than native and that comment syntax or need I to implement another interface or superclass?

Finally: We’re using Vaadin 6.4.8 with Tomcat 6.0 and Java 1.6. And tested this with Firefox( 3.6, 4beta), Chrome and IE8

Thanks for your help,

Christoph Grotz