Package org.primefaces
Class PrimeFaces.MultiViewState
java.lang.Object
org.primefaces.PrimeFaces.MultiViewState
- Enclosing class:
- PrimeFaces
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves multiViewState of a component in specific view within the current session.voidRemoves multiViewState of a component in specific view within the current session.voidclearAll()Removes all multiViewState within the current session.voidclearAll(boolean reset) Removes all multiViewState within the current session.voidRemoves all multiViewState within the current session.voidRemoves all multiViewState in specific view within the current session.voidRemoves all multiViewState in specific view within the current session.<T> TGets multiview state attached to a component in a specific view.<T> TGets multiview state attached to a component in a specific view.<T> TGets or create the multiview state attached to a component in a specific view.
-
Constructor Details
-
MultiViewState
public MultiViewState()
-
-
Method Details
-
clearAll
public void clearAll()Removes all multiViewState within the current session. -
clearAll
public void clearAll(boolean reset) Removes all multiViewState within the current session.- Parameters:
reset- indicates whether or not the component should be reset, if it is in the current view
-
clearAll
Removes all multiViewState within the current session.- Parameters:
reset- indicates whether or not the component should be reset, if it is in the current viewclientIdConsumer- Callback for each removed clientId
-
clearAll
Removes all multiViewState in specific view within the current session.- Parameters:
viewId- viewId in which multiview state should be clearedreset- indicates whether or not the component should be reset, if it is in the current view
-
clearAll
Removes all multiViewState in specific view within the current session.- Parameters:
viewId- viewId in which multiview state should be clearedreset- indicates whether or not the component should be reset, if it is in the current viewclientIdConsumer- operation to execute for every clientId after multiview state has been cleared
-
clear
Removes multiViewState of a component in specific view within the current session.- Parameters:
viewId- viewId of a pageclientId- clientId of a component for which multiview state should be cleared
-
clear
Removes multiViewState of a component in specific view within the current session.- Parameters:
viewId- viewId of a pageclientId- clientId of a component for which multiview state should be cleared, if it is in the current viewreset- indicates whether or not the component should be reset
-
get
Gets multiview state attached to a component in a specific view.- Type Parameters:
T- bean state generic- Parameters:
viewId- viewId of a pageclientId- clientId of a componentcreate- flag indicating if bean state should be created if does not exist in curent sessionsupplier- bean state instance- Returns:
- multiview state bean attached to a component
-
get
Gets or create the multiview state attached to a component in a specific view.- Type Parameters:
T- bean state generic- Parameters:
viewId- viewId of a pageclientId- clientId of a componentsupplier- bean state instance- Returns:
- multiview state bean attached to a component
-
get
Gets multiview state attached to a component in a specific view.- Type Parameters:
T- bean state generic- Parameters:
viewId- viewId of a pageclientId- clientId of a component- Returns:
- multiview state bean attached to a component or null
-