[jbpm-commits] JBoss JBPM SVN: r4678 - in projects/gwt-console/trunk: gui/war/src/main/resources/org/jboss/bpm/console and 1 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Apr 29 07:39:06 EDT 2009


Author: heiko.braun at jboss.com
Date: 2009-04-29 07:39:05 -0400 (Wed, 29 Apr 2009)
New Revision: 4678

Added:
   projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/Application.java
Modified:
   projects/gwt-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/Application.gwt.xml
   projects/gwt-console/trunk/server/server-core/src/main/java/org/jboss/bpm/console/server/TaskListFacade.java
Log:
Avoid mvc4g entry point and restablish oldskool entry point

Added: projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/Application.java
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/Application.java	                        (rev 0)
+++ projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/Application.java	2009-04-29 11:39:05 UTC (rev 4678)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.bpm.console.client;
+
+import com.google.gwt.core.client.EntryPoint;
+import com.mvc4g.client.Controller;
+import com.mvc4g.client.Event;
+
+/**
+ * Setup the main {@link com.mvc4g.client.Controller} and fire
+ * a login event.
+ * 
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public class Application implements EntryPoint
+{
+
+  public void onModuleLoad()
+  {
+    Controller mainController = new com.mvc4g.client.Controller();
+    mainController.addAction("login", new LoginAction());
+    mainController.addView("loginView", new LoginView());
+    mainController.handleEvent(new Event("login", null));    
+  }
+}

Modified: projects/gwt-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/Application.gwt.xml
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/Application.gwt.xml	2009-04-29 11:38:06 UTC (rev 4677)
+++ projects/gwt-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/Application.gwt.xml	2009-04-29 11:39:05 UTC (rev 4678)
@@ -48,7 +48,7 @@
   <set-property name="log_WindowLogger" value="DISABLED" />
 
   <!-- Specify the app entry point class. -->
-  <entry-point class='com.mvc4g.client.Mvc4gEntryPoint' />
+  <entry-point class="org.jboss.bpm.console.client.Application" />
 
   <servlet path="/xhp" class="jmaki.xhp.XmlHttpProxyServlet"/>
 

Modified: projects/gwt-console/trunk/server/server-core/src/main/java/org/jboss/bpm/console/server/TaskListFacade.java
===================================================================
--- projects/gwt-console/trunk/server/server-core/src/main/java/org/jboss/bpm/console/server/TaskListFacade.java	2009-04-29 11:38:06 UTC (rev 4677)
+++ projects/gwt-console/trunk/server/server-core/src/main/java/org/jboss/bpm/console/server/TaskListFacade.java	2009-04-29 11:39:05 UTC (rev 4678)
@@ -68,7 +68,7 @@
   /**
    * Lazy load the {@link org.jboss.bpm.console.server.integration.TaskManagement}
    */
-  private TaskDispatcherPlugin getTaskFormPlugin()
+  private TaskDispatcherPlugin getTaskDispatcherPlugin()
   {
     if(null==this.formPlugin)
     {
@@ -90,7 +90,7 @@
     List<TaskRef> refs = getTaskManagement().getTasksForIdentity(idRef);
 
     // decorate task form URL if plugin available
-    TaskDispatcherPlugin formPlugin = getTaskFormPlugin();
+    TaskDispatcherPlugin formPlugin = getTaskDispatcherPlugin();
     if(formPlugin!=null)
     {
       for(TaskRef task : refs)




More information about the jbpm-commits mailing list