edu.sampleu.demo.kitchensink
Class DialogTestViewUifController

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

@Controller
@RequestMapping(value="/dialog-configuration-test")
public class DialogTestViewUifController
extends UifControllerBase

a controller for the configuration test view

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

Constructor Summary
DialogTestViewUifController()
           
 
Method Summary
protected  UifFormBase createInitialForm(javax.servlet.http.HttpServletRequest request)
          Called to create a new model(form) object when necessary.
 org.springframework.web.servlet.ModelAndView doExtendedDialog(UifDialogTestForm form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Test method for a controller that invokes a dialog lightbox.
 org.springframework.web.servlet.ModelAndView doOKCancelExample(UifDialogTestForm form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Test method for a controller that invokes a dialog lightbox.
 org.springframework.web.servlet.ModelAndView doRegularGroupAsDialog(UifDialogTestForm form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Test method for a controller that invokes a dialog lightbox.
 org.springframework.web.servlet.ModelAndView doResponseInLightBox(UifDialogTestForm form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Test method for a controller that displays the response in a ightbox.
 org.springframework.web.servlet.ModelAndView doSomething(UifDialogTestForm form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Test method for a controller that invokes a dialog lightbox.
 org.springframework.web.servlet.ModelAndView goBack(UifDialogTestForm form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          not used at this time
 org.springframework.web.servlet.ModelAndView save(UifDialogTestForm form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Exercises the Dialog framework.
 org.springframework.web.servlet.ModelAndView start(UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Displays page for testing dialogs
 org.springframework.web.servlet.ModelAndView testExpressionDialog(UifDialogTestForm form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class org.kuali.rice.krad.web.controller.UifControllerBase
addBlankLine, addLine, cancel, checkForm, checkViewAuthorization, close, deleteLine, getBooleanDialogResponse, getMessageView, getStringDialogResponse, getUIFModelAndView, getUIFModelAndView, getViewService, hasDialogBeenAnswered, hasDialogBeenDisplayed, initForm, navigate, performFieldQuery, performFieldSuggest, performLookup, performRedirect, refresh, returnFromLightbox, returnToHistory, returnToHub, returnToPrevious, saveLine, showDialog, toggleInactiveRecordDisplay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialogTestViewUifController

public DialogTestViewUifController()
Method Detail

createInitialForm

protected UifFormBase 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

start

@RequestMapping(params="methodToCall=start")
public org.springframework.web.servlet.ModelAndView start(@ModelAttribute(value="KualiForm")
                                                                         UifFormBase form,
                                                                         org.springframework.validation.BindingResult result,
                                                                         javax.servlet.http.HttpServletRequest request,
                                                                         javax.servlet.http.HttpServletResponse response)
Displays page for testing dialogs

Overrides:
start in class UifControllerBase

save

@RequestMapping(params="methodToCall=save")
public org.springframework.web.servlet.ModelAndView save(@ModelAttribute(value="KualiForm")
                                                                        UifDialogTestForm form,
                                                                        org.springframework.validation.BindingResult result,
                                                                        javax.servlet.http.HttpServletRequest request,
                                                                        javax.servlet.http.HttpServletResponse response)
                                                  throws Exception
Exercises the Dialog framework.

Asks a series of questions of the user while processing a client request. Demonstrates the ability to go back to the client bring up a Lightbox modal dialog.
Displays a few dialogs back to the user. First a yes/no dialog asking the user to pick an author. Depending on which author was chosen, the user is asked to select a book. The user is then given a chance to start the selection process over or continue on.

Parameters:
form - - test form
result - - Spring form binding result
request - - http request
response - - http response
Returns:
Throws:
Exception

goBack

@RequestMapping(params="methodToCall=goBack")
public org.springframework.web.servlet.ModelAndView goBack(@ModelAttribute(value="KualiForm")
                                                                          UifDialogTestForm form,
                                                                          org.springframework.validation.BindingResult result,
                                                                          javax.servlet.http.HttpServletRequest request,
                                                                          javax.servlet.http.HttpServletResponse response)
not used at this time

Parameters:
form - - test form
result - - Spring form binding result
request - - http request
response - - http response
Returns:

doSomething

@RequestMapping(params="methodToCall=doRadioDialogExample")
public org.springframework.web.servlet.ModelAndView doSomething(@ModelAttribute(value="KualiForm")
                                                                               UifDialogTestForm form,
                                                                               org.springframework.validation.BindingResult result,
                                                                               javax.servlet.http.HttpServletRequest request,
                                                                               javax.servlet.http.HttpServletResponse response)
                                                         throws Exception
Test method for a controller that invokes a dialog lightbox.

Parameters:
form - - test form
result - - Spring form binding result
request - - http request
response - - http response
Returns:
Throws:
Exception

doOKCancelExample

@RequestMapping(params="methodToCall=doOkCancelExample")
public org.springframework.web.servlet.ModelAndView doOKCancelExample(@ModelAttribute(value="KualiForm")
                                                                                     UifDialogTestForm form,
                                                                                     org.springframework.validation.BindingResult result,
                                                                                     javax.servlet.http.HttpServletRequest request,
                                                                                     javax.servlet.http.HttpServletResponse response)
                                                               throws Exception
Test method for a controller that invokes a dialog lightbox.

Parameters:
form - - test form
result - - Spring form binding result
request - - http request
response - - http response
Returns:
Throws:
Exception

doRegularGroupAsDialog

@RequestMapping(params="methodToCall=doRegularGroupAsDialog")
public org.springframework.web.servlet.ModelAndView doRegularGroupAsDialog(@ModelAttribute(value="KualiForm")
                                                                                          UifDialogTestForm form,
                                                                                          org.springframework.validation.BindingResult result,
                                                                                          javax.servlet.http.HttpServletRequest request,
                                                                                          javax.servlet.http.HttpServletResponse response)
                                                                    throws Exception
Test method for a controller that invokes a dialog lightbox.

Parameters:
form - - test form
result - - Spring form binding result
request - - http request
response - - http response
Returns:
Throws:
Exception

testExpressionDialog

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

doExtendedDialog

@RequestMapping(params="methodToCall=doExtendedDialog")
public org.springframework.web.servlet.ModelAndView doExtendedDialog(@ModelAttribute(value="KualiForm")
                                                                                    UifDialogTestForm form,
                                                                                    org.springframework.validation.BindingResult result,
                                                                                    javax.servlet.http.HttpServletRequest request,
                                                                                    javax.servlet.http.HttpServletResponse response)
                                                              throws Exception
Test method for a controller that invokes a dialog lightbox.

Parameters:
form - - test form
result - - Spring form binding result
request - - http request
response - - http response
Returns:
Throws:
Exception

doResponseInLightBox

@RequestMapping(params="methodToCall=doResponseInLightBox")
public org.springframework.web.servlet.ModelAndView doResponseInLightBox(@ModelAttribute(value="KualiForm")
                                                                                        UifDialogTestForm form,
                                                                                        org.springframework.validation.BindingResult result,
                                                                                        javax.servlet.http.HttpServletRequest request,
                                                                                        javax.servlet.http.HttpServletResponse response)
                                                                  throws Exception
Test method for a controller that displays the response in a ightbox.

Parameters:
form - - test form
result - - Spring form binding result
request - - http request
response - - http response
Returns:
Throws:
Exception


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.