|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.uif.util.UifWebUtils
public class UifWebUtils
Provides helper methods that will be used during the request lifecycle
Created to avoid duplication of the methods used by the UifHandlerExceptionResolver
Constructor Summary | |
---|---|
UifWebUtils()
|
Method Summary | |
---|---|
static org.springframework.web.servlet.ModelAndView |
getComponentModelAndView(Component component,
Object model)
|
static org.springframework.web.servlet.ModelAndView |
getUIFModelAndView(UifFormBase form,
String pageId)
Configures the ModelAndView instance containing the form
data and pointing to the UIF generic spring view |
protected static ViewService |
getViewService()
|
static void |
postControllerHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler,
org.springframework.web.servlet.ModelAndView modelAndView)
After the controller logic is executed, the form is placed into session and the corresponding view is prepared for rendering |
static void |
prepareHistory(javax.servlet.http.HttpServletRequest request,
UifFormBase form)
Updates the history object (or constructs a new History) for the view we are getting ready to render |
static void |
prepareViewForRendering(javax.servlet.http.HttpServletRequest request,
UifFormBase form)
Prepares the View instance contained on the form for
rendering |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UifWebUtils()
Method Detail |
---|
public static org.springframework.web.servlet.ModelAndView getUIFModelAndView(UifFormBase form, String pageId)
ModelAndView
instance containing the form
data and pointing to the UIF generic spring view
form
- - Form instance containing the model datapageId
- - Id of the page within the view that should be rendered, can
be left blank in which the current or default page is rendered
public static org.springframework.web.servlet.ModelAndView getComponentModelAndView(Component component, Object model)
public static void postControllerHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, org.springframework.web.servlet.ModelAndView modelAndView) throws Exception
Exception
public static void prepareHistory(javax.servlet.http.HttpServletRequest request, UifFormBase form)
request
- - Http request object containing the request parametersform
- - object containing the view datapublic static void prepareViewForRendering(javax.servlet.http.HttpServletRequest request, UifFormBase form)
View
instance contained on the form for
rendering
request
- - request objectform
- - form instance containing the data and view instanceprotected static ViewService getViewService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |