edu.sampleu.demo.kitchensink
Class UifComponentsTestController

java.lang.Object
  extended by org.kuali.rice.krad.web.controller.UifControllerBase
      extended by edu.sampleu.demo.kitchensink.UifComponentsTestController

@Controller
@RequestMapping(value="/uicomponents")
public class UifComponentsTestController
extends UifControllerBase

Controller for the Test UI Page

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
UifComponentsTestController()
           
 
Method Summary
 org.springframework.web.servlet.ModelAndView addAllMessages(UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Adds all message types to fields defined in the validationMessageFields array
 org.springframework.web.servlet.ModelAndView addErrorInfoMessages(UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Adds error and info messages to fields defined in the validationMessageFields array
 org.springframework.web.servlet.ModelAndView addErrors(UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Adds errors to fields defined in the validationMessageFields array
 org.springframework.web.servlet.ModelAndView addErrorWarnMessages(UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Adds error and warning messages to fields defined in the validationMessageFields array
 org.springframework.web.servlet.ModelAndView addInfo(UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Adds infos to fields defined in the validationMessageFields array
 org.springframework.web.servlet.ModelAndView addLine(UifFormBase uifForm, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Called by the add line action for a new collection line.
 org.springframework.web.servlet.ModelAndView addSingleErrorMessage(UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Adds only 1 error message for testing
 org.springframework.web.servlet.ModelAndView addWarnInfoMessages(UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Adds warning and info messages to fields defined in the validationMessageFields array
 org.springframework.web.servlet.ModelAndView addWarnings(UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Adds warnings to fields defined in the validationMessageFields array
 org.springframework.web.servlet.ModelAndView close(UifComponentsTestForm uiTestForm, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  UifComponentsTestForm createInitialForm(javax.servlet.http.HttpServletRequest request)
          Called to create a new model(form) object when necessary.
 org.springframework.web.servlet.ModelAndView customLineAction(UifFormBase uifForm, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.springframework.web.servlet.ModelAndView errorCheck(UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Generates a fake incident report to test for errorCallback
 org.springframework.web.servlet.ModelAndView genCollectionServerMessages(UifComponentsTestForm uiTestForm, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.springframework.web.servlet.ModelAndView gotoState2(UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.springframework.web.servlet.ModelAndView gotoState3(UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.springframework.web.servlet.ModelAndView gotoState4(UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.springframework.web.servlet.ModelAndView makeReadOnly(UifFormBase uifForm, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Changes the view to readOnly and returns.
 org.springframework.web.servlet.ModelAndView navigate(UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Handles menu navigation between view pages
 org.springframework.web.servlet.ModelAndView redirectCheck(UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Test controller method to check for ajax redirect functionality.
 org.springframework.web.servlet.ModelAndView refreshProgGroup(UifComponentsTestForm uiTestForm, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.springframework.web.servlet.ModelAndView refreshWithServerMessages(UifComponentsTestForm uiTestForm, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.springframework.web.servlet.ModelAndView save(UifComponentsTestForm uiTestForm, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.springframework.web.servlet.ModelAndView start(UifFormBase form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Initial method called when requesting a new view instance which checks authorization and forwards the view for rendering
 org.springframework.web.servlet.ModelAndView updateOfficial(UifFormBase uifForm, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Performs custom line action for collection 4 in kitchen sink collection demo.
 
Methods inherited from class org.kuali.rice.krad.web.controller.UifControllerBase
addBlankLine, back, cancel, checkForm, checkViewAuthorization, defaultMapping, deleteLine, getBooleanDialogResponse, getMessageView, getStringDialogResponse, getUIFModelAndView, getUIFModelAndView, getUIFModelAndView, getUIFModelAndViewWithInit, getViewService, hasDialogBeenAnswered, hasDialogBeenDisplayed, initForm, performFieldQuery, performFieldSuggest, performLookup, performRedirect, performRedirect, refresh, resetDialogStatus, retrieveCollectionPage, returnFromLightbox, returnToHistory, returnToHub, returnToPrevious, saveLine, sessionTimeout, showDialog, tableJsonRetrieval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UifComponentsTestController

public UifComponentsTestController()
Method Detail

createInitialForm

protected UifComponentsTestForm createInitialForm(javax.servlet.http.HttpServletRequest request)
Description copied from class: UifControllerBase
Called to create a new model(form) object when necessary. This usually occurs on the initial request in a conversation (when the model is not present in the session). This method must be overridden when extending a controller and using a different form type than the superclass.

Specified by:
createInitialForm in class UifControllerBase
Parameters:
request - - the http request that was made
See Also:
UifControllerBase.createInitialForm(javax.servlet.http.HttpServletRequest)

start

@RequestMapping(params="methodToCall=start")
public org.springframework.web.servlet.ModelAndView start(@ModelAttribute(value="KualiForm")
                                                                         UifFormBase form,
                                                                         javax.servlet.http.HttpServletRequest request,
                                                                         javax.servlet.http.HttpServletResponse response)
Description copied from class: UifControllerBase
Initial method called when requesting a new view instance which checks authorization and forwards the view for rendering

Overrides:
start in class UifControllerBase

save

@RequestMapping(method=POST,
                params="methodToCall=save")
public org.springframework.web.servlet.ModelAndView save(@ModelAttribute(value="KualiForm")
                                                                        UifComponentsTestForm uiTestForm,
                                                                        org.springframework.validation.BindingResult result,
                                                                        javax.servlet.http.HttpServletRequest request,
                                                                        javax.servlet.http.HttpServletResponse response)

close

@RequestMapping(method=POST,
                params="methodToCall=close")
public org.springframework.web.servlet.ModelAndView close(@ModelAttribute(value="KualiForm")
                                                                         UifComponentsTestForm uiTestForm,
                                                                         org.springframework.validation.BindingResult result,
                                                                         javax.servlet.http.HttpServletRequest request,
                                                                         javax.servlet.http.HttpServletResponse response)

navigate

@RequestMapping(method=POST,
                params="methodToCall=navigate")
public org.springframework.web.servlet.ModelAndView navigate(@ModelAttribute(value="KualiForm")
                                                                            UifFormBase form,
                                                                            org.springframework.validation.BindingResult result,
                                                                            javax.servlet.http.HttpServletRequest request,
                                                                            javax.servlet.http.HttpServletResponse response)
Handles menu navigation between view pages

Overrides:
navigate in class UifControllerBase

refreshProgGroup

@RequestMapping(method=POST,
                params="methodToCall=refreshProgGroup")
public org.springframework.web.servlet.ModelAndView refreshProgGroup(@ModelAttribute(value="KualiForm")
                                                                                    UifComponentsTestForm uiTestForm,
                                                                                    org.springframework.validation.BindingResult result,
                                                                                    javax.servlet.http.HttpServletRequest request,
                                                                                    javax.servlet.http.HttpServletResponse response)

refreshWithServerMessages

@RequestMapping(method=POST,
                params="methodToCall=refreshWithServerMessages")
public org.springframework.web.servlet.ModelAndView refreshWithServerMessages(@ModelAttribute(value="KualiForm")
                                                                                             UifComponentsTestForm uiTestForm,
                                                                                             org.springframework.validation.BindingResult result,
                                                                                             javax.servlet.http.HttpServletRequest request,
                                                                                             javax.servlet.http.HttpServletResponse response)

genCollectionServerMessages

@RequestMapping(method=POST,
                params="methodToCall=genCollectionServerMessages")
public org.springframework.web.servlet.ModelAndView genCollectionServerMessages(@ModelAttribute(value="KualiForm")
                                                                                               UifComponentsTestForm uiTestForm,
                                                                                               org.springframework.validation.BindingResult result,
                                                                                               javax.servlet.http.HttpServletRequest request,
                                                                                               javax.servlet.http.HttpServletResponse response)
                                                                         throws Exception
Throws:
Exception

addErrors

@RequestMapping(method=POST,
                params="methodToCall=addErrors")
public org.springframework.web.servlet.ModelAndView addErrors(@ModelAttribute(value="KualiForm")
                                                                             UifFormBase form,
                                                                             org.springframework.validation.BindingResult result,
                                                                             javax.servlet.http.HttpServletRequest request,
                                                                             javax.servlet.http.HttpServletResponse response)
Adds errors to fields defined in the validationMessageFields array


addWarnings

@RequestMapping(method=POST,
                params="methodToCall=addWarnings")
public org.springframework.web.servlet.ModelAndView addWarnings(@ModelAttribute(value="KualiForm")
                                                                               UifFormBase form,
                                                                               org.springframework.validation.BindingResult result,
                                                                               javax.servlet.http.HttpServletRequest request,
                                                                               javax.servlet.http.HttpServletResponse response)
Adds warnings to fields defined in the validationMessageFields array


addInfo

@RequestMapping(method=POST,
                params="methodToCall=addInfo")
public org.springframework.web.servlet.ModelAndView addInfo(@ModelAttribute(value="KualiForm")
                                                                           UifFormBase form,
                                                                           org.springframework.validation.BindingResult result,
                                                                           javax.servlet.http.HttpServletRequest request,
                                                                           javax.servlet.http.HttpServletResponse response)
Adds infos to fields defined in the validationMessageFields array


addAllMessages

@RequestMapping(method=POST,
                params="methodToCall=addAllMessages")
public org.springframework.web.servlet.ModelAndView addAllMessages(@ModelAttribute(value="KualiForm")
                                                                                  UifFormBase form,
                                                                                  org.springframework.validation.BindingResult result,
                                                                                  javax.servlet.http.HttpServletRequest request,
                                                                                  javax.servlet.http.HttpServletResponse response)
Adds all message types to fields defined in the validationMessageFields array


addErrorWarnMessages

@RequestMapping(method=POST,
                params="methodToCall=addErrorWarnMessages")
public org.springframework.web.servlet.ModelAndView addErrorWarnMessages(@ModelAttribute(value="KualiForm")
                                                                                        UifFormBase form,
                                                                                        org.springframework.validation.BindingResult result,
                                                                                        javax.servlet.http.HttpServletRequest request,
                                                                                        javax.servlet.http.HttpServletResponse response)
Adds error and warning messages to fields defined in the validationMessageFields array


addErrorInfoMessages

@RequestMapping(method=POST,
                params="methodToCall=addErrorInfoMessages")
public org.springframework.web.servlet.ModelAndView addErrorInfoMessages(@ModelAttribute(value="KualiForm")
                                                                                        UifFormBase form,
                                                                                        org.springframework.validation.BindingResult result,
                                                                                        javax.servlet.http.HttpServletRequest request,
                                                                                        javax.servlet.http.HttpServletResponse response)
Adds error and info messages to fields defined in the validationMessageFields array


addSingleErrorMessage

@RequestMapping(method=POST,
                params="methodToCall=addSingleErrorMessage")
public org.springframework.web.servlet.ModelAndView addSingleErrorMessage(@ModelAttribute(value="KualiForm")
                                                                                         UifFormBase form,
                                                                                         org.springframework.validation.BindingResult result,
                                                                                         javax.servlet.http.HttpServletRequest request,
                                                                                         javax.servlet.http.HttpServletResponse response)
Adds only 1 error message for testing


addWarnInfoMessages

@RequestMapping(method=POST,
                params="methodToCall=addWarnInfoMessages")
public org.springframework.web.servlet.ModelAndView addWarnInfoMessages(@ModelAttribute(value="KualiForm")
                                                                                       UifFormBase form,
                                                                                       org.springframework.validation.BindingResult result,
                                                                                       javax.servlet.http.HttpServletRequest request,
                                                                                       javax.servlet.http.HttpServletResponse response)
Adds warning and info messages to fields defined in the validationMessageFields array


gotoState2

@RequestMapping(method=POST,
                params="methodToCall=gotoState2")
public org.springframework.web.servlet.ModelAndView gotoState2(@ModelAttribute(value="KualiForm")
                                                                              UifFormBase form,
                                                                              org.springframework.validation.BindingResult result,
                                                                              javax.servlet.http.HttpServletRequest request,
                                                                              javax.servlet.http.HttpServletResponse response)

gotoState3

@RequestMapping(method=POST,
                params="methodToCall=gotoState3")
public org.springframework.web.servlet.ModelAndView gotoState3(@ModelAttribute(value="KualiForm")
                                                                              UifFormBase form,
                                                                              org.springframework.validation.BindingResult result,
                                                                              javax.servlet.http.HttpServletRequest request,
                                                                              javax.servlet.http.HttpServletResponse response)

gotoState4

@RequestMapping(method=POST,
                params="methodToCall=gotoState4")
public org.springframework.web.servlet.ModelAndView gotoState4(@ModelAttribute(value="KualiForm")
                                                                              UifFormBase form,
                                                                              org.springframework.validation.BindingResult result,
                                                                              javax.servlet.http.HttpServletRequest request,
                                                                              javax.servlet.http.HttpServletResponse response)

errorCheck

@RequestMapping(method=POST,
                params="methodToCall=errorCheck")
public org.springframework.web.servlet.ModelAndView errorCheck(@ModelAttribute(value="KualiForm")
                                                                              UifFormBase form,
                                                                              org.springframework.validation.BindingResult result,
                                                                              javax.servlet.http.HttpServletRequest request,
                                                                              javax.servlet.http.HttpServletResponse response)
Generates a fake incident report to test for errorCallback

Parameters:
form -
result -
request -
response -
Returns:
ModelAndView model and view

redirectCheck

@RequestMapping(method=POST,
                params="methodToCall=redirectCheck")
public org.springframework.web.servlet.ModelAndView redirectCheck(@ModelAttribute(value="KualiForm")
                                                                                 UifFormBase form,
                                                                                 org.springframework.validation.BindingResult result,
                                                                                 javax.servlet.http.HttpServletRequest request,
                                                                                 javax.servlet.http.HttpServletResponse response)
Test controller method to check for ajax redirect functionality. Redirects to the portal main page

Parameters:
form -
result -
request -
response -
Returns:
ModelAndView model and view

addLine

public org.springframework.web.servlet.ModelAndView addLine(@ModelAttribute(value="KualiForm")
                                                            UifFormBase uifForm,
                                                            org.springframework.validation.BindingResult result,
                                                            javax.servlet.http.HttpServletRequest request,
                                                            javax.servlet.http.HttpServletResponse response)
Description copied from class: UifControllerBase
Called by the add line action for a new collection line.

Method determines which collection the add action was selected for and invokes the view helper service to add the line

Overrides:
addLine in class UifControllerBase

customLineAction

@RequestMapping(method=POST,
                params="methodToCall=customLineAction")
public org.springframework.web.servlet.ModelAndView customLineAction(@ModelAttribute(value="KualiForm")
                                                                                    UifFormBase uifForm,
                                                                                    org.springframework.validation.BindingResult result,
                                                                                    javax.servlet.http.HttpServletRequest request,
                                                                                    javax.servlet.http.HttpServletResponse response)

updateOfficial

@RequestMapping(method=POST,
                params="methodToCall=updateOfficial")
public org.springframework.web.servlet.ModelAndView updateOfficial(@ModelAttribute(value="KualiForm")
                                                                                  UifFormBase uifForm,
                                                                                  org.springframework.validation.BindingResult result,
                                                                                  javax.servlet.http.HttpServletRequest request,
                                                                                  javax.servlet.http.HttpServletResponse response)
Performs custom line action for collection 4 in kitchen sink collection demo. Just puts out a growl message and returns.

Parameters:
uifForm -
result -
request -
response -
Returns:

makeReadOnly

@RequestMapping(method=POST,
                params="methodToCall=makeReadOnly")
public org.springframework.web.servlet.ModelAndView makeReadOnly(@ModelAttribute(value="KualiForm")
                                                                                UifFormBase uifForm,
                                                                                org.springframework.validation.BindingResult result,
                                                                                javax.servlet.http.HttpServletRequest request,
                                                                                javax.servlet.http.HttpServletResponse response)
Changes the view to readOnly and returns.

Parameters:
uifForm -
result -
request -
response -
Returns:
readOnly View


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.