cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stev...@outerthought.org
Subject [WIKI-UPDATE] WoodyWidgetReference Mon Nov 3 19:00:03 2003
Date Mon, 03 Nov 2003 18:00:04 GMT
Page: http://wiki.cocoondev.org/Wiki.jsp?page=WoodyWidgetReference , version: 5 on Mon Nov
 3 17:05:36 2003 by SylvainWallez

- <wd:repeater id="...">
+ <wd:repeater id="..." initial-size="...">
+ 
+ The optional __initial-size__ attribute allows to specify how much rows should be initially
present on the repeater. It mostly avoids to display a table with only table headers. Default
value is zero.
- The __repeater__ attribute should contain the id of the repeater widget on which this repeater-action
should act.
+ The __repeater__ attribute should contain the id of the repeater widget on which this repeater-action
should act. This must be a sibling of the repeater-action widget (see also row-action for
actions inside a row).
+ 
+ __wd:on-activate__ allows additional event handlers to be defined, see also [Woody Event
Handling]. The interface to be implemented for Java event listeners is org.apache.cocoon.woody.event.ActionListener.
The WidgetEvent subclass is {{org.apache.cocoon.woody.event.ActionEvent}}.
+ 
+ !!row-action widget
+ 
+ This is a specific type of action widget that handles frequent actions occuring on a repeater
row, such as adding/removing a row and moving it up and down. These widgets should be placed
inside a repeater and act on the current row.
+ 
+ {{{
+ <wd:row-action id="..." action-command="add-after|delete|move-up|move-down">
+   <wd:label>...</wd:label>
+   <wd:help>...</wd:help>
+   <wd:hint>...</wd:hint>
+   <wd:on-activate>
+     ...
+   </wd:on-activate>
+ </wd:repeater-action>
+ }}}
+ 
+ The __action-command__ attribute should have either the value {{add-below}}, {{delete}},
{{move-up}} or  {{move-down}}.



Mime
View raw message