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 void
back(ViewController viewController)
void
forward(ViewController viewController)
List<ItemCollection>
getData(ViewController viewController)
Returns the current view result.void
init()
void
onLoad(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 QueryException
This method can be used in ajax forms to pre-compute the result set for further rendering.- Parameters:
viewController
-- Throws:
QueryException
-
forward
public void forward(ViewController viewController)
-
back
public void back(ViewController viewController)
-
getData
public List<ItemCollection> getData(ViewController viewController) throws 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:
QueryException
-
-