|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CB2 presentation elements implement this interface.
Method Summary | |
void |
init(ActionContext actionCtx)
Initializes the presentation element. |
void |
reset()
Resets fields of the presentation element to their default values. |
Method Detail |
public void init(ActionContext actionCtx) throws BLException, javax.servlet.ServletException
actionCtx
- the action context.
BLException
- if an error happened in the business level.
javax.servlet.ServletException
- if an error happened during element
initialization.public void reset()
init
method call, which also means that it is not
necessary to set default values to the fields in the constructor.
This method is especially usefull for optional input parameters.
If an optional parameter (the required
attribute is set
to false
in the parameter descriptor) is not present
in the specified scope, the system does not do anything, it does
not call any setter and leaves the respective bean's property
untouched. Therefore, setting a value in the reset
method
is the only way to set the default value for an optional input
parameter.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |