Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Unable to use Visual Editor to create a portlet

nikhil joshi
9 years ago Jun 07, 2012 9:23am
Henri Sara
9 years ago Jun 07, 2012 1:10pm
nikhil joshi
9 years ago Jun 07, 2012 1:38pm
Henri Sara
9 years ago Jun 07, 2012 2:05pm

Still it looks like you try to point the "application" parameter in your portlet.xml to this class.

Instead, it should point to something like the new application class created by the Eclipse plug-in when you created the project, where you use mainWindow.setContent(new MyVisuallyComposedComponent()) - or addComponent(...) if you want also other content in the window.

nikhil joshi
9 years ago Jun 08, 2012 7:28am
Henri Sara
9 years ago Jun 11, 2012 7:53am

You should to set an explicit size (e.g. in pixels or using setSizeUndefined()) for the top level layout.

With your current code, the portal is probably not defining a size and your custom component defines height 100%, which gets calculated to 100% of 0 pixels as nothing else tells how big the layout or the portlet needs to be.

nikhil joshi
9 years ago Jun 13, 2012 11:45am