portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vku...@apache.org
Subject svn commit: r774020 - /portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/prm/ApplicationsListHome.java
Date Tue, 12 May 2009 19:05:38 GMT
Author: vkumar
Date: Tue May 12 19:05:38 2009
New Revision: 774020

URL: http://svn.apache.org/viewvc?rev=774020&view=rev
Log:
Portlet Application Manager : -Populating application details view, on Click of portlet

Modified:
    portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/prm/ApplicationsListHome.java

Modified: portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/prm/ApplicationsListHome.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/prm/ApplicationsListHome.java?rev=774020&r1=774019&r2=774020&view=diff
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/prm/ApplicationsListHome.java
(original)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/prm/ApplicationsListHome.java
Tue May 12 19:05:38 2009
@@ -74,7 +74,7 @@
         add(form);
 
         // Construct Data View
-        JetspeedServiceLocator locator = ((AbstractAdminWebApplication) getApplication()).getServiceLocator();
+        final JetspeedServiceLocator locator = ((AbstractAdminWebApplication) getApplication()).getServiceLocator();
         final Locale locale = (((AbstractAdminWebApplication) getApplication()).getPortletRequest()).getLocale();
         final ApplicationDataProvider applicationDataProvider = new ApplicationDataProvider(locator);
         final PortletDataProvider portletListDataProvider = new PortletDataProvider("j2-admin",
locale, locator);
@@ -196,6 +196,7 @@
         final DataView<PortletDefinitionBean> portletListView = new DataView<PortletDefinitionBean>(PORTLET_TABLE,
portletListDataProvider)
         {
             private static final long serialVersionUID = 1L;
+            
 
             protected void populateItem(final Item<PortletDefinitionBean> item)
             {
@@ -216,6 +217,22 @@
                                                      ApplicationsListApplication.SELECTED_PORTLET_EVENT,
                                                      portletDefinitionBean
                                                      );
+                            PortletMessaging
+                                            .publish(
+                                                     ((AbstractAdminWebApplication) getApplication()).getPortletRequest(),
+                                                     ApplicationsListApplication.PRM_TOPIC,
+                                                     ApplicationsListApplication.SELECTED_APPLICATION_EVENT,
+                                                     new ApplicationBean(
+                                                                         locator.getPortletRegistry()
+                                                                                .getPortletApplication(portletDefinitionBean.getApplicationName()),
+                                                                         locator
+                                                                                .getPortletFactory()
+                                                                                .isPortletApplicationRegistered(
+                                                                                        
                       locator
+                                                                                        
                              .getPortletRegistry()
+                                                                                        
                              .getPortletApplication(
+                                                                                        
                                                     portletDefinitionBean
+                                                                                        
                                                                          .getApplicationName()))));
                         } 
                         catch (NotSerializableException e)
                         {



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message