Author: buildbot
Date: Fri Mar  4 03:20:17 2016
New Revision: 981778

Log:
Production update by buildbot for tapestry

Modified:
    websites/production/tapestry/content/cache/main.pageCache
    websites/production/tapestry/content/component-events.html

Modified: websites/production/tapestry/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/tapestry/content/component-events.html
==============================================================================
--- websites/production/tapestry/content/component-events.html (original)
+++ websites/production/tapestry/content/component-events.html Fri Mar  4 
03:20:17 2016
@@ -202,7 +202,9 @@
     return this;
   }
 </pre>
-</div></div><p>The return value of the exception event handler 
<em>replaces</em> the return value of original event handler method. For the 
typical case (an exception thrown by an "activate" or "action" event), this 
will be a <a  href="page-navigation.html">navigational response</a> such as a 
page instance or page name.</p><p>This can be handy for handling cases where 
the data in the URL is incorrectly formatted.</p><p>In the above example, the 
navigational response is the page itself.</p><p>If there is no exception event 
handler, or the exception event handler returns null (or is void), then the 
exception will be passed to the <a  class="external-link" 
href="http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/RequestExceptionHandler.html";>RequestExceptionHandler</a>
 service, which (in the default configuration) will render the exception 
page.</p><h1 id="ComponentEvents-TriggeringEvents">Triggering Events</h1><p>If 
you want your own component to trigger events, 
 just call the <a  rel="nofollow">triggerEvent</a> method of <a  
class="external-link" 
href="http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ComponentResources.html";>ComponentResources</a>
 from within the component class.</p><p>For example, the following emits an 
"updateAll" event. A containing component can then respond to it, if desired, 
with an "onUpdateAll()" method in its own component class.</p><div class="code 
panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" 
style="border-bottom-width: 1px;"><b>Your component class 
(partial)</b></div><div class="codeContent panelContent pdl">
+</div></div><p>The return value of the exception event handler 
<em>replaces</em> the return value of original event handler method. For the 
typical case (an exception thrown by an "activate" or "action" event), this 
will be a <a  href="page-navigation.html">navigational response</a> such as a 
page instance or page name.</p><p>This can be handy for handling cases where 
the data in the URL is incorrectly formatted.</p><p>In the above example, the 
navigational response is the page itself.</p><p>If there is no exception event 
handler, or the exception event handler returns null (or is void), then the 
exception will be passed to the <a  class="external-link" 
href="http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/RequestExceptionHandler.html";>RequestExceptionHandler</a>
 service, which (in the default configuration) will render the exception 
page.</p><h1 id="ComponentEvents-TriggeringEvents">Triggering 
Events</h1><p></p><div class="navmenu" style="float:right; backg
 round:#eee; margin:3px; padding:0 1em">
+<p>    <strong>JumpStart Demo:</strong><br clear="none">
+    <a  class="external-link" 
href="http://jumpstart.doublenegative.com.au/jumpstart/together/ajaxcomponentscrud/persons";
 rel="nofollow">AJAX Components CRUD</a></p></div>If you want your own 
component to trigger events, just call the <a  rel="nofollow">triggerEvent</a> 
method of <a  class="external-link" 
href="http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ComponentResources.html";>ComponentResources</a>
 from within the component class.<p>For example, the following emits an 
"updateAll" event. A containing component can then respond to it, if desired, 
with an "onUpdateAll()" method in its own component class.</p><div class="code 
panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" 
style="border-bottom-width: 1px;"><b>Your component class 
(partial)</b></div><div class="codeContent panelContent pdl">
 <pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">@Inject
 ComponentResources componentResources;
 &#160;...
@@ -212,9 +214,7 @@ private void timeToUpdate() {
         ...
     }
 } </pre>
-</div></div><p>The third parameter to triggerEvent is a 
ComponentEventCallback, which you'll only need to implement if you want to get 
the return value of the handler method. The return value of <span 
class="il">triggerEvent</span>() says if the <span class="il">event</span> was 
handled or not.</p><div class="navmenu" style="float:right; background:#eee; 
margin:3px; padding:0 1em">
-<p>    <strong>JumpStart Demo:</strong><br clear="none">
-    <a  class="external-link" 
href="http://jumpstart.doublenegative.com.au/jumpstart/together/ajaxcomponentscrud/persons";
 rel="nofollow">AJAX Components CRUD</a></p></div></div>
+</div></div><p>The third parameter to triggerEvent is a 
ComponentEventCallback, which you'll only need to implement if you want to get 
the return value of the handler method. The return value of <span 
class="il">triggerEvent</span>() says if the <span class="il">event</span> was 
handled or not.</p><p>&#160;</p></div>
       </div>
 
       <div class="clearer"></div>


Reply via email to