| java.lang.Object nl.hippo.cocoon.forms.HippoFormHelper
HippoFormHelper | public class HippoFormHelper (Code) | | author: Dennis Dam version: $Id: HippoFormHelper.java 8544 2007-10-16 09:48:55Z ddam $ |
Method Summary | |
public static String | getBookmark(Form form) Generates a string containing a javascript array of html element ids, which is used to automatically "jump" down to
to the context the user was at before the form was submitted. | public static Repeater | getRelatedRepeater(Widget widget) Tries to retrieve a repeater which is related to a widget. | public static boolean | isAction(Widget w, String cmd) | public static void | setBookmark(Widget w) Sets bookmark attributes on the form widget, which is later used to generate a html bookmark. |
REPEATER_ACTION_ADD | public static String REPEATER_ACTION_ADD(Code) | | |
REPEATER_ACTION_DELETE_ROWS | public static String REPEATER_ACTION_DELETE_ROWS(Code) | | |
getBookmark | public static String getBookmark(Form form)(Code) | | Generates a string containing a javascript array of html element ids, which is used to automatically "jump" down to
to the context the user was at before the form was submitted.
Parameters: form - The form for which to generate a bookmark a string containing a javascript array of HTML element ids |
getRelatedRepeater | public static Repeater getRelatedRepeater(Widget widget)(Code) | | Tries to retrieve a repeater which is related to a widget.
Parameters: widget - a widget the related repeater element |
isAction | public static boolean isAction(Widget w, String cmd)(Code) | | |
setBookmark | public static void setBookmark(Widget w)(Code) | | Sets bookmark attributes on the form widget, which is later used to generate a html bookmark.
This is used to "jump back" to a widget context, after form submit.
Parameters: w - the widget which caused the form submit, usually an action widget |
|
|