我正在使用"com.extjs.gxt.ui.client.widget.form.FormPanel“,在客户端显示pdf有问题。我已经提交了请求,其中html被转换为pdf格式,并放在OutputStream,以便它将填充在客户端的pdf格式。我可以看到使用sencha/gwt FormPanel的pdf,但相同的代码不能与extjs组件一起工作。
代码:
FormPanel form = new FormPanel();
form.setEncoding(FormPanel.Encoding.URLENCODED);
form.setMethod(FormPanel.Method.POST);
form.getElement().setAttribute("target", "_blank");
form.setAction(url);
form.submit();任何帮助都是非常感谢的。
发布于 2013-08-09 22:56:17
默认情况下,Extjs FormPanel使用ajax进行提交(我在Extjs3.x和4.x中进行了验证)。您可以将其与以下内容一起使用:
form.getEl().dom.submit()因为这将代替常规的HTML表单提交。
https://stackoverflow.com/questions/18141291
复制相似问题