You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by mu...@apache.org on 2007/05/13 20:20:05 UTC

svn commit: r537629 - /struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remotebutton/index.jsp

Author: musachy
Date: Sun May 13 11:20:05 2007
New Revision: 537629

URL: http://svn.apache.org/viewvc?view=rev&rev=537629
Log:
Rename topic name ("/after" is confusing as the topic is always triggered)

Modified:
    struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remotebutton/index.jsp

Modified: struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remotebutton/index.jsp
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remotebutton/index.jsp?view=diff&rev=537629&r1=537628&r2=537629
==============================================================================
--- struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remotebutton/index.jsp (original)
+++ struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remotebutton/index.jsp Sun May 13 11:20:05 2007
@@ -16,7 +16,7 @@
      dojo.byId(widget.targetsArray[0]).innerHTML = "Done";
    }
 
-    dojo.event.topic.subscribe("/after", function(data, type, e){
+    dojo.event.topic.subscribe("/alltopics", function(data, type, e){
       alert('inside a topic event. type='+type);
       //data : text returned
       //type : "before", "load" or "error"
@@ -43,7 +43,7 @@
 <br/><br/>
 
 A submit button, with "notifyTopics"
-<sx:submit type="submit" value="submit" targets="t1" href="%{ajaxTest}" notifyTopics="/after"/>
+<sx:submit type="submit" value="submit" targets="t1" href="%{ajaxTest}" notifyTopics="/alltopics"/>
 
 <br/><br/>