|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Responsible for the state of a component. Model's can be state-full or non-state-full. By default Models are non-state-full. Non-state-full models are models whose state dies when its enclosing page loses its visibility. On the other hand, the state in state-full models lives on when its enclosing page loses its visibility. The state in state-full models is kept alive by persisting it on the client browser in hidden HTML input elements, cookies or some other client storage mechanism. Do not confuse this persistence with the server side persistence provided AbstractThreadLocalModel.
State is transferred to a model when a HTTP request is received from the client and extracted from it when a HTTP response is sent to the client. Under default operation this process is handled dynamically by the controller using the Java Bean design pattern. When applying state, the controller examines the model for member functions with the following properties:
set
set
matches the name of the
HTTP request parameter
void
get
AbstractThreadLocalModel
,
DynamicModel
Method Summary | |
boolean |
_getStatefull()
Returns true if this model's state should persist beyond the life its page. |
void |
_setStatefull(boolean statefull)
Sets the state of this model's statefullness. |
Method Detail |
public boolean _getStatefull()
public void _setStatefull(boolean statefull)
isStatefull
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |