summaryrefslogtreecommitdiffstats
path: root/WebContent/WEB-INF
diff options
context:
space:
mode:
authorPetter Holmström <petter.holmstrom@itmill.com>2009-11-10 12:21:09 +0000
committerPetter Holmström <petter.holmstrom@itmill.com>2009-11-10 12:21:09 +0000
commitf886f99171a9257abdeb0a8af986ae8516aca62b (patch)
treeb5e38310191d2aa702fbb869f50fcec8dfe14e4b /WebContent/WEB-INF
parent4023ac28e9047ec2495d0a96159383ef0e276dc0 (diff)
downloadvaadin-framework-f886f99171a9257abdeb0a8af986ae8516aca62b.tar.gz
vaadin-framework-f886f99171a9257abdeb0a8af986ae8516aca62b.zip
Preliminary support for portlet events.
svn changeset:9708/svn branch:portlet_2.0
Diffstat (limited to 'WebContent/WEB-INF')
-rw-r--r--WebContent/WEB-INF/liferay-display.xml1
-rw-r--r--WebContent/WEB-INF/portlet.xml44
2 files changed, 42 insertions, 3 deletions
diff --git a/WebContent/WEB-INF/liferay-display.xml b/WebContent/WEB-INF/liferay-display.xml
index 288a4638c1..2981e08fd4 100644
--- a/WebContent/WEB-INF/liferay-display.xml
+++ b/WebContent/WEB-INF/liferay-display.xml
@@ -18,5 +18,6 @@
<portlet id="AddressBookPortlet" />
<portlet id="CalcPortlet"/>
<portlet id="SamplerPortlet"/>
+ <portlet id="HelloWorldEventPortlet"/>
</category>
</display> \ No newline at end of file
diff --git a/WebContent/WEB-INF/portlet.xml b/WebContent/WEB-INF/portlet.xml
index f097509c87..d05e88e8d7 100644
--- a/WebContent/WEB-INF/portlet.xml
+++ b/WebContent/WEB-INF/portlet.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
- version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
+ version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
<portlet>
<portlet-name>PortletDemoPortlet</portlet-name>
<display-name>Vaadin PortletDemo</display-name>
@@ -119,6 +119,7 @@
<role-name>user</role-name>
</security-role-ref>
</portlet>
+
<portlet>
<portlet-name>HelloWorldPortlet</portlet-name>
<display-name>Hello World</display-name>
@@ -135,7 +136,34 @@
<title>HelloWorld</title>
<short-title>HelloWorld</short-title>
</portlet-info>
+ <supported-processing-event>
+ <qname xmlns:vaadin="http://www.vaadin.com/hello">vaadin:Hello</qname>
+ </supported-processing-event>
+ <supported-publishing-event>
+ <qname xmlns:vaadin="http://www.vaadin.com/hello">vaadin:Reply</qname>
+ </supported-publishing-event>
</portlet>
+
+ <portlet>
+ <portlet-name>HelloWorldEventPortlet</portlet-name>
+ <display-name>Hello World Event (non-Vaadin)</display-name>
+ <portlet-class>com.vaadin.demo.HelloWorldEventPortlet</portlet-class>
+ <supports>
+ <mime-type>text/html</mime-type>
+ <portlet-mode>view</portlet-mode>
+ </supports>
+ <portlet-info>
+ <title>HelloWorldEvent (non-Vaadin)</title>
+ <short-title>HelloWorldEvent (non-Vaadin)</short-title>
+ </portlet-info>
+ <supported-processing-event>
+ <qname xmlns:vaadin="http://www.vaadin.com/hello">vaadin:Reply</qname>
+ </supported-processing-event>
+ <supported-publishing-event>
+ <qname xmlns:vaadin="http://www.vaadin.com/hello">vaadin:Hello</qname>
+ </supported-publishing-event>
+ </portlet>
+
<portlet>
<portlet-name>AddressBookPortlet</portlet-name>
<display-name>Address Book</display-name>
@@ -270,6 +298,16 @@
<role-name>user</role-name>
</security-role-ref>
</portlet>
+
+ <event-definition>
+ <qname xmlns:vaadin="http://www.vaadin.com/hello">vaadin:Hello</qname>
+ <value-type>java.lang.String</value-type>
+ </event-definition>
+
+ <event-definition>
+ <qname xmlns:vaadin="http://www.vaadin.com/hello">vaadin:Reply</qname>
+ <value-type>java.lang.String</value-type>
+ </event-definition>
<!--
This can be used to work around an issue in liferay 5.0-5.1.1