[richfaces-svn-commits] JBoss Rich Faces SVN: r2768 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Wed Sep 5 10:06:48 EDT 2007


Author: ilya_shaikovsky
Date: 2007-09-05 10:06:48 -0400 (Wed, 05 Sep 2007)
New Revision: 2768

Modified:
   trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/jsAPI.xhtml
Log:
API functions calling changed

Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/jsAPI.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/jsAPI.xhtml	2007-09-05 14:01:07 UTC (rev 2767)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/jsAPI.xhtml	2007-09-05 14:06:48 UTC (rev 2768)
@@ -75,10 +75,10 @@
 	</p>
 		
 	<p>	 <dl><dt>If you develop the macrodefinition for the calendar object, you can use:</dt>
-		<dd><code>Richfaces.invokeOnComponent('calendar',element,api_function_name)</code></dd>
+		<dd><code>Richfaces.getComponent('calendar',element).api_function_name(parameters)</code></dd>
 		<dt>For example, the following call is
 		used on the "Next Year" button on the popup calendar panel:</dt>
-		<dd><code>Richfaces.invokeOnComponent('calendar',this,'nextYear'); </code></dd>
+		<dd><code>Richfaces.invokeOnComponent('calendar',this).nextYear(); </code></dd>
 		 The second parameter 
 		is an element inside the calendar. Richfaces.invokeOnComponent tries to find
 		the component in the parents hierarchy with type specified with the first parameter and




More information about the richfaces-svn-commits mailing list