更新 portlet 而不刷新门户页面

发布于 2024-09-02 04:36:24 字数 262 浏览 2 评论 0原文

我正在尝试创建一个简单的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

等往事风中吹 2024-09-09 04:36:25

请尝试使用以下 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文