Author: tv
Date: Tue Jun 29 19:44:00 2010
New Revision: 959080

URL: http://svn.apache.org/viewvc?rev=959080&view=rev
Log:
Fix documentation

Modified:
    turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/services/jsonrpc-service.xml

Modified: 
turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/services/jsonrpc-service.xml
URL: 
http://svn.apache.org/viewvc/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/services/jsonrpc-service.xml?rev=959080&r1=959079&r2=959080&view=diff
==============================================================================
--- turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/services/jsonrpc-service.xml 
(original)
+++ turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/services/jsonrpc-service.xml 
Tue Jun 29 19:44:00 2010
@@ -56,17 +56,17 @@ services.JsonRpcService.classname=org.ap
 
 <p>
 There are a number of things you need to do in order to add AJAX functionality
-to your webapp.  First you implement the functions:
+to your webapp. First you implement the functions:
 </p>
 
 <source><![CDATA[
 public class MyJsonFunctions
 {
-    private String getHello(String clientParameter)
+    public String getHello(String clientParameter)
     {
         return "Hello " + clientParameter;
     }
-    private String getGoodbye(String clientParameter)
+    public String getGoodbye(String clientParameter)
     {
         return "Goodbye " + clientParameter;
     }
@@ -82,9 +82,7 @@ public class MyJsonScreen extends JSONSc
 {
     public void doOutput(RunData data) throws Exception
     {
-        User user = data.getUser();
-
-        MyJsonFunctions myFunctions = new MyJsonFunctions(user.getName());
+        MyJsonFunctions myFunctions = new MyJsonFunctions();
 
         // Session specific
         TurbineJsonRpc.registerObject(data.getSession(), "myFunctions", 
myFunctions);
@@ -153,7 +151,7 @@ function jsonEval(evalStr) {
 <p>
 In these pages you also need to include the JavaScript necessary to process the
 JSON calls - this file is available as part of the JSON-RPC-Java distribution
-(it is included in the <code>webapps\jaonrpc</code> directory):
+(it is included in the <code>webapps\jsonrpc</code> directory):
 </p>
 
 <source><![CDATA[


Reply via email to