New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AjaxTilesView does not work with Spring 3 and Tiles 2.1.2 [SWF-1220] #429
Comments
Dave Syer commented Spring 3 is now depending on Tiles 2.1.3. The problem is the same. The Javadocs say the BasicTilesContainer.getContextFactory() is deprecated and always returns null (duh!), but there is a replacement method called getRequestContextFactory(). |
Dave Syer commented On a closer look this is more complicated. TilesContainer has changed its interface significantly (and in some pretty brain dead ways). I think we might have to provide our own TilesContainer implementation to get this working now. I suppose at least that way there might be a chance to support Tiles 2.0 and 2.1? |
Derek OKeeffe commented Hello, |
Derek OKeeffe commented Here is a fix that seems to work.... 1: Configure the tilesViewResolver to take a new viewClass. 2: Here is the code for the new viewClass. import java.io.IOException; import javax.servlet.ServletContext; import org.apache.tiles.Attribute; public class FlowAjaxTiles21View extends FlowAjaxTilesView {
} |
Jeremy Grelle commented I have attached a version of AjaxTilesView that has been updated to use the Tiles 2.1 APIs. This is meant as a stop-gap for anyone who needs Tiles 2.1 support prior to the release of a proper Spring JS 3.0 milestone. I expect to do some significant refactoring and cleanup before actually committing a solution to the Spring JS trunk. |
Eros Sy commented I am also receiving this error message.. WARN o.s.w.mvc.view.FlowAjaxTilesView - An Ajax request was detected, but no fragments were specified to be re-rendered. Falling back to full page render. This can cause unpredictable results when processing the ajax response on the client. My environment is kinda different: could you give me some ideas on how to resolve this issue? thanks |
Eros Sy commented by the way... while I receiving the above error... the spring renders the popup view but its renders the main view so the result... two main view, one is the original main view and the other one is popup main view.. please give me hints thanks.. |
Rossen Stoyanchev commented AjaxTilesView has been upgraded to Tiles 2.1.2. |
Scott Andrews opened SWF-1220 and commented
The AjaxTilesView is incompatible with the Tiles support in Spring 3. The Tiles version in Spring 3 was upgraded to 2.1.2 which has a significantly different API then 2.0.x.
The relevant stack trace for the 2.0.7 AjaxTilesView with Spring 3 and Tiles 2.1.2 is:
java.lang.NullPointerException
at org.springframework.js.ajax.tiles2.AjaxTilesView.renderMergedOutputModel(AjaxTilesView.java:92)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1062)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:709)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:617)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:526)
...
Attachments:
8 votes, 9 watchers
The text was updated successfully, but these errors were encountered: