org.kuali.rice.krad.web.controller
Class UifClientListener

java.lang.Object
  extended by org.kuali.rice.krad.web.controller.UifControllerBase
      extended by org.kuali.rice.krad.web.controller.UifClientListener

@Controller
@RequestMapping(value="/listener")
public class UifClientListener
extends UifControllerBase

Controller that receives various ajax requests from the client to manager server side state

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

Constructor Summary
UifClientListener()
           
 
Method Summary
 String clearForm(String formKey, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Invoked from the client when the user is leaving a view (by the portal tabs or other mechanism) to clear the form from session storage
protected  UifFormBase createInitialForm(javax.servlet.http.HttpServletRequest request)
          Called to create a new model(form) object when necessary.
 
Methods inherited from class org.kuali.rice.krad.web.controller.UifControllerBase
addBlankLine, addLine, cancel, checkForm, checkViewAuthorization, close, deleteLine, getBooleanDialogResponse, getStringDialogResponse, getUIFModelAndView, getUIFModelAndView, getViewResolver, getViewService, hasDialogBeenAnswered, hasDialogBeenDisplayed, initForm, navigate, performFieldQuery, performFieldSuggest, performLookup, performRedirect, refresh, renderView, returnFromLightbox, returnToHistory, returnToHub, returnToPrevious, saveLine, setViewResolver, showDialog, start, toggleInactiveRecordDisplay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UifClientListener

public UifClientListener()
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

clearForm

@RequestMapping(params="methodToCall=clearForm")
@ResponseBody
public String clearForm(@RequestParam(value="formKey")
                                                    String formKey,
                                                    javax.servlet.http.HttpServletRequest request,
                                                    javax.servlet.http.HttpServletResponse response)
Invoked from the client when the user is leaving a view (by the portal tabs or other mechanism) to clear the form from session storage

Parameters:
formKey - - key of form that should be cleared
Returns:
String json success string


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