-
May 26th, 2009, 07:32 PM
#1
simple xt ajax action is not working for spring controller.
I am using XT in several places in my projects .. so far i have used in spring webflows . Every thing works perfect. But i am trying to use in simple webcontroller jsps the events are not going through..
all the jsps which are part of webflows ( /spportalFlow.do ) are working fine..
/quickbpflow.do is part of spring mutliactioncontroller.. so any java script is not firing through this .. am i missing anything ? does it work differently for webflows and spring controller ?
<bean id="webflows" class="org.springframework.webflow.executor.mvc.Fl owController">
<property name="flowExecutor" ref="flowExecutor"/>
</bean>
<bean id="ajaxInterceptor" class="org.springmodules.xt.ajax.AjaxInterceptor">
<property name="handlerMappings">
<props>
<prop key="/spportalFlow.do">listingAjaxHandler</prop>
<prop key="/quickbpflow.do">listingAjaxHandler</prop>
</props>
</property>
</bean>
<bean id="urlHandlerMapping" class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
<property name="interceptors">
<list>
<ref bean="ajaxInterceptor"/>
</list>
</property>
<property name="mappings">
<props>
<prop key="/spportalFlow.do">webflows</prop>
<prop key="/quickbpflow.do">listingMultiController</prop>
</props>
</property>
</bean>
Thanks
Venky
-
May 27th, 2009, 07:35 PM
#2
Guys,
i have figured out its a cache issue.. but i found one scenario i am missing is
when i do a foward with in a jsp like below events are not triggering in the resulting jsp..
<jsp:forward page="/quickbpflow.do" />
but it works when i do the same thing ... in
http://localhost:8080/portal/quickbpflow.do
is it different w.r.t spring modules interceptor the way it treats the forward request?
appreciate any suggestions
Thanks
Venky
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules