Layout file layouts/main.html is missing. Components will be drawn for debu

Hi,

I’m having a problem using CustomLayout. I always get the message in the subject and error below in the debug console.

A few things to be aware of though:

  1. I’m using Vaadin with OSGi.

  2. My logs show that no request is ever made for the resource in question

  3. If use the input stream constructor of CustomLayout it works fine, but not when I use the string constructor.

  4. Have tried with several previous versions of Vaadin and get the same result.

Anyone any ideas?

Thanks in advance.

Cheers,
Chris

Drag=move, shift-drag=resize, doubleclick=min/max.Use debug=quiet to log only to browser console.
Vaadin application servlet version: 6.4.1
Widget set is built on version: 6.4.1
Application version: NONVERSIONED
inserting load indicator
Making UIDL Request with params: init
Server visit took 52ms
Assuming CSS loading is not complete, postponing render phase. (.v-loading-indicator height == 0)
JSON parsing took 0ms

	change
com.google.gwt.core.client.JavaScriptException: (TypeError): Cannot read property 'c' of undefined stack: TypeError: Cannot read property 'c' of undefined at Object.aBb [as Fd]
 (http://localhost:8080/VAADIN/widgetsets/com.vaadin.terminal.gwt.DefaultWidgetSet/67B736AD37402D833B6ED2BB2939F8B9.cache.html:3965:128) at Afb (http://localhost:8080/VAADIN/widgetsets/com.vaadin.terminal.gwt.DefaultWidgetSet/67B736AD37402D833B6ED2BB2939F8B9.cache.html:4326:168) at $fb (http://localhost:8080/VAADIN/widgetsets/com.vaadin.terminal.gwt.DefaultWidgetSet/67B736AD37402D833B6ED2BB2939F8B9.cache.html:4067:275) at Zfb (http://localhost:8080/VAADIN/widgetsets/com.vaadin.terminal.gwt.DefaultWidgetSet/67B736AD37402D833B6ED2BB2939F8B9.cache.html:4359:1222) at Object.tIb [as Ld]
 (http://localhost:8080/VAADIN/widgetsets/com.vaadin.terminal.gwt.DefaultWidgetSet/67B736AD37402D833B6ED2BB2939F8B9.cache.html:4298:34) at Object.nBb [as Ld]
 (http://localhost:8080/VAADIN/widgetsets/com.vaadin.terminal.gwt.DefaultWidgetSet/67B736AD37402D833B6ED2BB2939F8B9.cache.html:4278:350) at o1b (http://localhost:8080/VAADIN/widgetsets/com.vaadin.terminal.gwt.DefaultWidgetSet/67B736AD37402D833B6ED2BB2939F8B9.cache.html:4380:823) at mhb (http://localhost:8080/VAADIN/widgetsets/com.vaadin.terminal.gwt.DefaultWidgetSet/67B736AD37402D833B6ED2BB2939F8B9.cache.html:4375:690) at Cfb (http://localhost:8080/VAADIN/widgetsets/com.vaadin.terminal.gwt.DefaultWidgetSet/67B736AD37402D833B6ED2BB2939F8B9.cache.html:4285:548) at ygb (http://localhost:8080/VAADIN/widgetsets/com.vaadin.terminal.gwt.DefaultWidgetSet/67B736AD37402D833B6ED2BB2939F8B9.cache.html:3618:120) type: non_object_property_load arguments: c,
Processing time was 29ms for 1081 characters of JSON
Referenced paintables: 3

Hi Chris,

Use this folder structure… (I am using it in eclipse)
[Your Project name]
/[WebContent]
/VAADIN/themes/sampler/layouts/[your layout without .html extension]

Example :

/VaadinSampleWebProject/WebContent/VAADIN/themes/sampler/layouts/examplecustomlayout.html

The Code :
CustomLayout custom = new CustomLayout(“…/…/sampler/layouts/examplecustomlayout”);
addComponent(custom);

Hope this helps you. It worked for me. but it is not displaying the whole layout though…!! emoticon

check this out for more ideas : https://vaadin.com/book/-/page/layout.customlayout.html