You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by an...@apache.org on 2006/05/08 21:28:11 UTC

svn commit: r405143 - /tapestry/tapestry4/branches/4.0/contrib/src/documentation/content/xdocs/tapestry-contrib/ComponentReference/XTile.xml

Author: andyhot
Date: Mon May  8 12:28:10 2006
New Revision: 405143

URL: http://svn.apache.org/viewcvs?rev=405143&view=rev
Log:
More docs on XTile

Modified:
    tapestry/tapestry4/branches/4.0/contrib/src/documentation/content/xdocs/tapestry-contrib/ComponentReference/XTile.xml

Modified: tapestry/tapestry4/branches/4.0/contrib/src/documentation/content/xdocs/tapestry-contrib/ComponentReference/XTile.xml
URL: http://svn.apache.org/viewcvs/tapestry/tapestry4/branches/4.0/contrib/src/documentation/content/xdocs/tapestry-contrib/ComponentReference/XTile.xml?rev=405143&r1=405142&r2=405143&view=diff
==============================================================================
--- tapestry/tapestry4/branches/4.0/contrib/src/documentation/content/xdocs/tapestry-contrib/ComponentReference/XTile.xml (original)
+++ tapestry/tapestry4/branches/4.0/contrib/src/documentation/content/xdocs/tapestry-contrib/ComponentReference/XTile.xml Mon May  8 12:28:10 2006
@@ -33,6 +33,13 @@
    and receive its response without reloading the page (Ajax)
 </p>
 
+<warning>
+	The <link href="&apicontrib;/contrib/ajax/XTileService.html">XTileService</link>
+	that this component uses does NOT activate any page - it simply calls the specified 
+	listener. This means that pageBeginRender() methods will not get called and that 
+	cycle.getPage() will return null.
+</warning>
+
 <section>
   <title>Parameters</title>
   
@@ -54,8 +61,8 @@
 		<td></td>
 		<td>
         The listener that will be invoked when the Javascript function with the given name is invoked.
-        Any parameters passed to the send function will be available from cycle.getServiceParameters(). 
-        In addition, the listener can perform cycle.setServiceParameters() to pass an array of
+        Any parameters passed to the send function will be available from cycle.getListenerParameters(). 
+        In addition, the listener can perform cycle.setListenerParameters() to pass an array of
         strings to the JavaScript receive function.
 		</td>
     </tr>
@@ -137,7 +144,7 @@
   </head>
   <body>
     <span jwcid="@contrib:XTile" listener="ognl:listeners.handleListRequest"
-        sendName="sendPrefix" receiveName="receivevList"/>
+        sendName="sendPrefix" receiveName="recvList"/>
     <form action="Results.html" method="post">
        <input type="text" onkeyup="sendPrefix(this.value)"/>
        <br/>
@@ -161,12 +168,12 @@
     .
     .
     public void handleListRequest(IRequestCycle cycle) {
-      Object[] params = cycle.getServiceParameters();
+      Object[] params = cycle.getListenerParameters();
       if (params.length == 0) return;
 
       String typed = params[0].toString();
       String[] ret = findCompletions(typed);
-      cycle.setServiceParameters(ret);
+      cycle.setListenerParameters(ret);
     }
     .
     .