From 3409ee849396b5e54d3d61d06b048a3541426210 Mon Sep 17 00:00:00 2001 From: Leif Åstrand Date: Thu, 26 Jul 2012 15:18:35 +0300 Subject: Support connector resources in portlets (#9059) --- .../com/vaadin/tests/integration/JSR286PortletApplication.java | 9 ++++++++- .../com/vaadin/tests/integration/PortletConnectorResource.css | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 tests/testbench/com/vaadin/tests/integration/PortletConnectorResource.css (limited to 'tests') diff --git a/tests/testbench/com/vaadin/tests/integration/JSR286PortletApplication.java b/tests/testbench/com/vaadin/tests/integration/JSR286PortletApplication.java index f0ed0f79cb..c9bcd01092 100644 --- a/tests/testbench/com/vaadin/tests/integration/JSR286PortletApplication.java +++ b/tests/testbench/com/vaadin/tests/integration/JSR286PortletApplication.java @@ -19,6 +19,7 @@ import javax.portlet.ResourceResponse; import javax.portlet.WindowState; import com.vaadin.Application; +import com.vaadin.annotations.StyleSheet; import com.vaadin.terminal.ExternalResource; import com.vaadin.terminal.gwt.client.ui.label.ContentMode; import com.vaadin.terminal.gwt.server.PortletApplicationContext2; @@ -38,7 +39,12 @@ import com.vaadin.ui.Upload.Receiver; */ public class JSR286PortletApplication extends Application.LegacyApplication { - LegacyWindow main = new LegacyWindow(); + @StyleSheet("PortletConnectorResource.css") + public final class LegacyWindowWithStylesheet extends LegacyWindow { + + } + + LegacyWindow main = new LegacyWindowWithStylesheet(); TextField tf = new TextField("Some value"); Label userInfo = new Label(); Link portletEdit = new Link(); @@ -56,6 +62,7 @@ public class JSR286PortletApplication extends Application.LegacyApplication { Embedded specialNameResourceTest = new Embedded( "Test ApplicationResources with special names", new SpecialNameResource(this)); + specialNameResourceTest.addStyleName("hugeBorder"); main.addComponent(specialNameResourceTest); userInfo.setCaption("User info"); diff --git a/tests/testbench/com/vaadin/tests/integration/PortletConnectorResource.css b/tests/testbench/com/vaadin/tests/integration/PortletConnectorResource.css new file mode 100644 index 0000000000..7338e4708a --- /dev/null +++ b/tests/testbench/com/vaadin/tests/integration/PortletConnectorResource.css @@ -0,0 +1,3 @@ +.hugeBorder { + border: 10px solid green; +} \ No newline at end of file -- cgit v1.2.3