A document has been updated:
http://cocoon.zones.apache.org/daisy/documentation/479.html
Document ID: 479
Branch: main
Language: default
Name: Cocoon Forms: Event Handling (unchanged)
Document Type: Cocoon Document (unchanged)
Updated on: 5/8/06 4:10:59 PM
Updated by: Simone Gianni
A new version has been created, state: draft
Parts
=====
Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name: (unchanged)
Size: 7934 bytes (previous version: 7565 bytes)
Content diff:
(5 equal lines skipped)
<p>Some types of widgets can emit events. For example, the action widget
produces ActionEvents and the field widget produces ValueChangedEvents.
Next to
these events, there are also ProcessingPhaseEvents, fired in between the
various
--- phases of the processing of a request.</p>
+++ phases of the processing of a request, and RepeaterEvents fired by a
repeater
+++ when rows are added, removed or cleared.</p>
<p>Handling events can be done in three ways:</p>
(139 equal lines skipped)
org.apache.cocoon.forms.event.ActionEvent
org.apache.cocoon.forms.event.ProcessingPhaseListener
--- org.apache.cocoon.forms.event.ProcessingPhaseEvent</pre>
+++ org.apache.cocoon.forms.event.ProcessingPhaseEvent
+++ org.apache.cocoon.forms.event.RepeaterListener
+++ org.apache.cocoon.forms.event.RepeaterEvent
+++ </pre>
+++
<p>The table below gives an overview of what events are supported on what
widgets.</p>
(9 equal lines skipped)
<th>
<p>Supports ActionEvents</p>
</th>
+++ <th>
+++ <p>Supports RepeaterEvents</p>
+++ </th>
</tr>
<tr>
<td>
<p>field</p>
</td>
<td><img src="daisy:375"/></td>
<td/>
+++ <td/>
</tr>
<tr>
<td>
(3 equal lines skipped)
<p><img src="daisy:375"/></p>
</td>
<td/>
+++ <td/>
</tr>
<tr>
<td>
<p>booleanfield</p>
</td>
<td><img src="daisy:375"/></td>
<td/>
+++ <td/>
</tr>
<tr>
<td>
<p>repeater</p>
</td>
<td/>
<td/>
+++ <td/>
</tr>
<tr>
<td>
<p>output</p>
</td>
<td/>
<td/>
+++ <td/>
</tr>
<tr>
<td>
<p>submit</p>
</td>
<td/>
<td><img src="daisy:375"/></td>
+++ <td/>
</tr>
<tr>
<td>
<p>action</p>
</td>
<td/>
<td><img src="daisy:375"/></td>
+++ <td/>
</tr>
<tr>
<td>
<p>repeater-action</p>
</td>
<td/>
<td><img src="daisy:375"/></td>
+++ <td/>
</tr>
<tr>
<td>
<p>row-action</p>
</td>
<td/>
<td><img src="daisy:375"/></td>
+++ <td/>
</tr>
<tr>
<td>
(3 equal lines skipped)
<p>TODO</p>
</td>
<td/>
+++ <td/>
</tr>
<tr>
<td>
<p>upload</p>
</td>
<td/>
<td/>
+++ <td/>
</tr>
<tr>
<td>
<p>messages</p>
</td>
<td/>
<td/>
+++ <td/>
</tr>
+++ <tr>
+++ <td>
+++ <p>repeater</p>
+++ </td>
+++ <td/>
+++ <td/>
+++ <td><img src="daisy:375"/></td>
+++ </tr>
</tbody>
</table>
(2 equal lines skipped)
Fields
======
no changes
Links
=====
no changes
Custom Fields
=============
no changes
Collections
===========
no changes