org.springmodules.validation.valang.javascript.taglib
Class ValangRulesExportInterceptor

java.lang.Object
  extended by HandlerInterceptorAdapter
      extended by org.springmodules.validation.valang.javascript.taglib.ValangRulesExportInterceptor

public class ValangRulesExportInterceptor
extends HandlerInterceptorAdapter

Spring MVC interceptor implementation that will automatically export Valang validation rules that are used by any of the intercepted handlers into the the ModelAndView so that they are accessible to the custom tag ValangValidateTag.

Does nothing if the intercepted handler is not an instance of BaseCommandController, if the handler's validator implementation is not an instance of ValangValidator or if the handler did not export a command object into the model.

Author:
Oliver Hutchison
See Also:
ValangValidateTag, ValangValidator

Constructor Summary
ValangRulesExportInterceptor()
           
 
Method Summary
 void postHandle(HttpServletRequest request, HttpServletResponse response, java.lang.Object handler, ModelAndView modelAndView)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValangRulesExportInterceptor

public ValangRulesExportInterceptor()
Method Detail

postHandle

public void postHandle(HttpServletRequest request,
                       HttpServletResponse response,
                       java.lang.Object handler,
                       ModelAndView modelAndView)
                throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2005. All Rights Reserved.