diff options
author | Artur Signell <artur@vaadin.com> | 2013-06-13 22:50:29 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-06-14 06:15:36 +0000 |
commit | a7957df951a08a6b254c9020ed18e27dc41ecfe4 (patch) | |
tree | b6a0824a8639e3c90616d146dd1d1f691ab5d840 /server | |
parent | bad3208d69e863322cf17cfaa1dca97170c7e6a7 (diff) | |
download | vaadin-framework-a7957df951a08a6b254c9020ed18e27dc41ecfe4.tar.gz vaadin-framework-a7957df951a08a6b254c9020ed18e27dc41ecfe4.zip |
Fixes broken request listeners (#12056)
Change-Id: I432d901ea3a0d0e3013c045a2048489ee0a41695
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/server/communication/PortletListenerNotifier.java | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/server/src/com/vaadin/server/communication/PortletListenerNotifier.java b/server/src/com/vaadin/server/communication/PortletListenerNotifier.java index 5c03a6f4dc..34e007c770 100644 --- a/server/src/com/vaadin/server/communication/PortletListenerNotifier.java +++ b/server/src/com/vaadin/server/communication/PortletListenerNotifier.java @@ -59,9 +59,9 @@ public class PortletListenerNotifier extends SynchronizedRequestHandler { VaadinRequest request, VaadinResponse response) throws IOException { VaadinPortletSession sess = (VaadinPortletSession) session; - PortletRequest req = ((VaadinPortletRequest) request) + PortletRequest portletRequest = ((VaadinPortletRequest) request) .getPortletRequest(); - PortletResponse resp = ((VaadinPortletResponse) response) + PortletResponse portletResponse = ((VaadinPortletResponse) response) .getPortletResponse(); // Finds the right UI @@ -70,18 +70,19 @@ public class PortletListenerNotifier extends SynchronizedRequestHandler { uI = session.getService().findUI(request); } - if (request instanceof RenderRequest) { - sess.firePortletRenderRequest(uI, (RenderRequest) req, - (RenderResponse) resp); - } else if (request instanceof ActionRequest) { - sess.firePortletActionRequest(uI, (ActionRequest) req, - (ActionResponse) resp); - } else if (request instanceof EventRequest) { - sess.firePortletEventRequest(uI, (EventRequest) req, - (EventResponse) resp); - } else if (request instanceof ResourceRequest) { - sess.firePortletResourceRequest(uI, (ResourceRequest) req, - (ResourceResponse) resp); + if (portletRequest instanceof RenderRequest) { + sess.firePortletRenderRequest(uI, (RenderRequest) portletRequest, + (RenderResponse) portletResponse); + } else if (portletRequest instanceof ActionRequest) { + sess.firePortletActionRequest(uI, (ActionRequest) portletRequest, + (ActionResponse) portletResponse); + } else if (portletRequest instanceof EventRequest) { + sess.firePortletEventRequest(uI, (EventRequest) portletRequest, + (EventResponse) portletResponse); + } else if (portletRequest instanceof ResourceRequest) { + sess.firePortletResourceRequest(uI, + (ResourceRequest) portletRequest, + (ResourceResponse) portletResponse); } return false; |