|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hdpagination.web.jsf.PaginateFacesAction
public abstract class PaginateFacesAction
JSF managed bean for pagination query should extend from this class.
The execute method should be binding with the action property
of commandLink or commandButton via method-binding expression.
| Constructor Summary | |
|---|---|
PaginateFacesAction()
|
|
| Method Summary | |
|---|---|
protected java.lang.Object |
clone()
If (1) the scope of search result is other than 'request'
(e.g. |
java.lang.String |
execute()
Action method binding with the action property of commandLink or commandButton via method-binding expression. |
java.lang.Integer |
getPageSize()
How many records should be displayed in one page. |
PaginateDefinition |
getPaginateDefinition()
The instance of PaginateDefinition defines configuration properties used
in pagination search under JSF environment. |
abstract QueryCallback |
getQueryCallback()
Generate a QueryCallback instance based on request parameters which will be executed by the back-end search execute engine. |
void |
setPageSize(java.lang.Integer pageSize)
How many records should be displayed in one page. |
void |
setPaginateDefinition(PaginateDefinition pagDefinition)
Set the instance of PaginateDefinition which defines configuration properties used
in pagination search under JSF environment. |
protected boolean |
validate(javax.faces.context.FacesContext context)
For cross field validation (validate based on multiple fields). |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PaginateFacesAction()
| Method Detail |
|---|
public java.lang.Integer getPageSize()
Use value binding expression to associate this property with a UI Component's value in the searching input page.
If this property is not associated with any UI Component in the searching input page, the page size defined in
PaginateDefinition,
the page size defined in GlobalConfig,
or the default value (10) will be used.
public void setPageSize(java.lang.Integer pageSize)
Use value binding expression to associate this property with a UI Component's value in the searching input page.
If this property is not associated with any UI Component in the searching input page, the page size defined in
PaginateDefinition,
the page size defined in GlobalConfig,
or the default value (10) will be used.
pageSize - public PaginateDefinition getPaginateDefinition()
PaginateDefinition defines configuration properties used
in pagination search under JSF environment.
public void setPaginateDefinition(PaginateDefinition pagDefinition)
PaginateDefinition which defines configuration properties used
in pagination search under JSF environment.
pagDefinition - public abstract QueryCallback getQueryCallback()
public java.lang.String execute()
forwardPath property of the associated
instance.
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
scope of search result is other than 'request'
(e.g. 'session' or 'application');
(2) And the method execute in subclass of PaginateFacesAction
use anonymous inner class to return QueryCallback instance.
(3) subclass of PaginateFacesAction contains attribute with type of user defined class and status of that attribute affects
the status of QueryCallback.
Then subclass of PaginateFacesAction needs to override clone() method to deep copy the attribute that affects
the status QueryCallback.
Otherwise, unpredictable behavior will happen when user clicks pagination links if search criteria fields have been changed.
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionprotected boolean validate(javax.faces.context.FacesContext context)
FacesContext if validation fails.
context -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||