文件上传组件不支持 TLS

发布于 2024-12-14 23:55:36 字数 632 浏览 2 评论 0原文

我一直在使用 Primefaces 2.2.1 文件上传组件,但它似乎不适用于 SSL 或 TLS - HTTP 错误。我一直在尝试 RichFaces 文件上传组件,但我不知道是否可以将其与 Primefaces 集成。还有其他 JSF 组件可以与 SSL 一起使用吗?它会在下一个 Primefaces 版本中修复吗? 当我关注本教程时,我只是得到

<partial-response>
<changes>
<update id="javax.faces.ViewState">
<![CDATA[ -4529855290807263768:-3315128550281964003 ]]>
</update>
<extension primefacesCallbackParam="validationFailed">{"validationFailed":false}</extension>
</changes>
</partial-response>

响应。提交方法未触发。

I have been using Primefaces 2.2.1 file upload component, but it seems that it doesn't work with SSL or TLS - HTTP ERROR. I have been trying RichFaces File Upload component, but I dont Know if it is even possibile to integrate it with Primefaces. Is there any other JSF component I can use with SSL? It is going to be fixed in next Primefaces relase?
When I'm following this tutorial I'm just getting

<partial-response>
<changes>
<update id="javax.faces.ViewState">
<![CDATA[ -4529855290807263768:-3315128550281964003 ]]>
</update>
<extension primefacesCallbackParam="validationFailed">{"validationFailed":false}</extension>
</changes>
</partial-response>

as response. Submit method is not triggering.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

放手` 2024-12-21 23:55:36

我也遇到了这个问题,尽管我使用了 primefaces upload componenet。
我修复了 bij 删除 enctype="multipart/form-data"

<h:form enctype="multipart/form-data">
...
</h:form>

<h:form>
...
</h:form>

然后我没有再收到任何验证错误,希望它有帮助......

I also had this problem, although I used primefaces upload componenet.
I fixed it bij removing enctype="multipart/form-data"

<h:form enctype="multipart/form-data">
...
</h:form>

<h:form>
...
</h:form>

then I didn't get any more validation errors, hope it helps...

静赏你的温柔 2024-12-21 23:55:36

这对于 Primefaces 2 来说是一个真正的问题...

现在,如果您使用新的 Primefaces 3.0.M4,您会对结果感到惊讶:使用 TLS 上传文件效果很好(经过测试),并且对我们来说不再有闪光。我讨厌闪光!

我知道当前版本只是测试版,但不知何故它比 Primefaces 2 好得多,而且距离 RC1 发布只有几天的时间了。
http://www.primefaces.org/showcase-labs/ui/fileUploadHome.jsf

This was a real problem for Primefaces 2...

Now, if you use the new Primefaces 3.0.M4 you will be surprised with the results: uploading files with TLS works just fine (tested), and no more flash for us. I hate flash!

I know that the current version it's just a beta one but it's somehow far better that Primefaces 2, and there are only a few days to wait until RC1 release.
http://www.primefaces.org/showcase-labs/ui/fileUploadHome.jsf

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