如何在GWT窗体面板中发布整个页面 [英] how post entire page in GWT form panel

查看:106
本文介绍了如何在GWT窗体面板中发布整个页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用GWT FormPanel时,提交表单后,它会发布表单,但不会重定向到动作url。
任何人都可以帮我吗?

While using GWT FormPanel, after submitting the form, it posts form but does not redirect to the action url. Can any body help me?

推荐答案

formPanelObject.getElement().<FormElement>cast().setTarget("");

通过此行更改表单的目标参数,现在主页面重定向到动作url之后调用formPanelObject.submit();。

by this line you changing the target parameter of the form and now the main page redirected to the action url after calling formPanelObject.submit();.

这篇关于如何在GWT窗体面板中发布整个页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆