|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.oness.common.webapp.controller.action.ActionUtils
Utility class with action common methods.
Field Summary | |
static java.lang.String |
MAX_ELEMENTS_ATTRIBUTE_NAME
|
static java.lang.String |
RESULTS_ATTRIBUTE_NAME
|
Method Summary | |
static int |
getFirstElement(javax.servlet.http.HttpServletRequest request)
Get the first element using displaytag page parameter from the request |
static int |
getMaxElements(javax.servlet.http.HttpServletRequest request)
Get the max number of elements using MAX_ELEMENTS_ATTRIBUTE_NAME parameter from the request |
static void |
setIteratorPageParameters(net.sf.oness.common.model.util.PaginatedList list,
javax.servlet.http.HttpServletRequest request)
Set the common needed parameters for a page-by-page iterator. |
static void |
setIteratorPageParameters(net.sf.oness.common.model.util.PaginatedList list,
java.lang.String attributeName,
javax.servlet.http.HttpServletRequest request)
Set the common needed parameters for a page-by-page iterator Sets a PaginatedList (called RESULTS_ATTRIBUTE_NAME by default) and parameters for previous and next links |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String RESULTS_ATTRIBUTE_NAME
public static final java.lang.String MAX_ELEMENTS_ATTRIBUTE_NAME
Method Detail |
public static void setIteratorPageParameters(net.sf.oness.common.model.util.PaginatedList list, java.lang.String attributeName, javax.servlet.http.HttpServletRequest request)
Set the common needed parameters for a page-by-page iterator
Sets a PaginatedList (called RESULTS_ATTRIBUTE_NAME by default) and parameters for previous and next links
list
- The current pageattributeName
- list will be saved in the request
under this name, if null the RESULTS_ATTRIBUTE_NAME
will be usedrequest
- public static void setIteratorPageParameters(net.sf.oness.common.model.util.PaginatedList list, javax.servlet.http.HttpServletRequest request)
list
- The current pagerequest
- setIteratorPageParameters(PaginatedList, String, Map, HttpServletRequest)
public static int getFirstElement(javax.servlet.http.HttpServletRequest request)
request
-
public static int getMaxElements(javax.servlet.http.HttpServletRequest request)
request
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |