更新 portlet 而不刷新门户页面
我正在尝试创建一个简单的agena portlet。 现在我已经使用 spring-portlet-mvc 开发了一个基本的功能,它允许您使用调用控制器中的 previousMonth 或 nextMonth 函数的命名链接导航到下个月和上个月。 现在我遇到的问题是这个导航导致我的整个页面刷新。
现在我想知道解决这个问题的最佳方法是什么。 我环顾四周,看起来 jquery/ajax 可以解决这个问题,但由于我还没有使用该技术的任何经验,我想知道是否有人有任何指针/更好的想法来解决我的问题。
I'm trying to create a simple agena portlet.
Now I've developed a basic one using spring-portlet-mvc, it allows you to navigate to the next and previous month with thusly named links that invoke a previousMonth or nextMonth function in my controller.
Now the problem I'm having is that this navigation causes my whole page to refresh.
Now I was wondering what the best way to fix this was.
I've been looking around a bit and it looks like jquery/ajax will do the trick, but since I don't have any experience yet with that technology I was wondering if anyone had any pointers/better ideas to solve my problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请尝试使用以下 Spring MVC 2.5.x 的 URL 获取它。
http://www.jtraining.com/blogs/ ajax-with-spring-mvc-and-jquery.html
另请检查以下帖子,
从 AJAX Servlet 生成 Portlet URL
在 Spring MVC 3.x 中,现在内置了 Ajax 支持。所以你会从springsource找到它。
帕斯。
Please try to get it with following URL for spring MVC 2.5.x.
http://www.jtraining.com/blogs/ajax-with-spring-mvc-and-jquery.html
Also check following post,
Portlet URL Generation From AJAX Servlet
In spring MVC 3.x, Ajax support is inbuilt now. So you will find it from springsource.
Parth.