| java.lang.Object uk.org.ponder.rsf.components.UIComponent uk.org.ponder.rsf.components.UIParameterHolder uk.org.ponder.rsf.components.UICommand
UICommand | public class UICommand extends UIParameterHolder (Code) | | Represents a control that will cause a non-idempotent (POST) request to the
server. The basic case where the command is rendered using a piece of
non-bound text is handled by filling in the "commandtext" field. For more
complex command contents including bound ones, leave this field as null and
add rendering components as childen of the command. You may NOT set the
(navigation) target of a UICommand, by RSF design it will ALWAYS (in the case
of an HTTP/HTML render system) post to the same URL as the page on which it
is contained.
author: Antranig Basman (antranig@caret.cam.ac.uk) |
Method Summary | |
public static UICommand | make(UIContainer parent, String ID, String text, String methodbinding) Creates a command link which will initiate a non-idempotent request
(action cycle) to handle the command. | public static UICommand | make(UIContainer parent, String ID, UIBoundString commandtext, String methodbinding) Creates a command control which accepts a bound string (for example a
UIMessage) as the textual label. | public static UICommand | make(UIContainer parent, String ID, UIBoundString commandtext) Construct a command control with a command text but no method binding. | public static UICommand | make(UIContainer parent, String ID, String methodbinding) Construct a command control with a method binding, but the nested markup
unchanged from the template. | public static UICommand | make(UIContainer parent, String ID) Construct an "actionless" command link, suitable for a CRUD-type
application where the data alteration constitutes the entire action. | public UICommand | setReturn(String returnvalue) Sets the method binding for this UICommand to perform no action but to
return the supplied value, should the cycle complete without errors. |
methodbinding | public ELReference methodbinding(Code) | | The EL reference of the action/method binding to be invoked when this
control is operated.
|
make | public static UICommand make(UIContainer parent, String ID, String text, String methodbinding)(Code) | | Creates a command link which will initiate a non-idempotent request
(action cycle) to handle the command.
Parameters: parent - The parent component to which this action link will be addedas a child. Parameters: text - The text that will be rendered to the user on this component. Parameters: methodbinding - An RSF EL expression representing the action to betriggered when the user activates this link. |
make | public static UICommand make(UIContainer parent, String ID)(Code) | | Construct an "actionless" command link, suitable for a CRUD-type
application where the data alteration constitutes the entire action.
|
setReturn | public UICommand setReturn(String returnvalue)(Code) | | Sets the method binding for this UICommand to perform no action but to
return the supplied value, should the cycle complete without errors.
This will overwrite any existing method binding for the component.
Parameters: returnvalue - The required return value from the action cycle. this component. |
|
|