Package org.imixs.workflow.faces.data
Class ViewHandler
- java.lang.Object
-
- org.imixs.workflow.faces.data.ViewHandler
-
- All Implemented Interfaces:
Serializable
@Named @RequestScoped public class ViewHandler extends Object implements Serializable
The ViewHandler is a @RequestScoped CDI bean computing the result defined by a ViewController.- Version:
- 0.0.1
- Author:
- rsoika
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ViewHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidback(ViewController viewController)voidforward(ViewController viewController)List<org.imixs.workflow.ItemCollection>getData(ViewController viewController)Returns the current view result.voidinit()voidonLoad(ViewController viewController)This method can be used in ajax forms to pre-compute the result set for further rendering.
-
-
-
Method Detail
-
init
@PostConstruct public void init()
-
onLoad
public void onLoad(ViewController viewController) throws org.imixs.workflow.exceptions.QueryException
This method can be used in ajax forms to pre-compute the result set for further rendering.- Parameters:
viewController-- Throws:
org.imixs.workflow.exceptions.QueryException
-
forward
public void forward(ViewController viewController)
-
back
public void back(ViewController viewController)
-
getData
public List<org.imixs.workflow.ItemCollection> getData(ViewController viewController) throws org.imixs.workflow.exceptions.QueryException
Returns the current view result. The returned result set is defined by the current query definition.The method implements a lazy loading mechanism and caches the result locally.
- Returns:
- view result
- Throws:
org.imixs.workflow.exceptions.QueryException
-
-