LWUIT:如何使用 HTMLComponent 发布表单

发布于 2024-10-06 19:53:40 字数 110 浏览 0 评论 0原文

我的表单显示良好,我可以填写所有标签,我什至覆盖了文本字段以便于输入。但是当我按下“保存”按钮来发布表单时。它所做的只是重新加载 HTMLComponent。

这是为什么?我该如何发布表单?

I hava form that shows well, I can fill in all the labels, I have even overriden the textfield for easier input. but when I press the 'save' button to POST the form. All it does is reload the HTMLComponent.

Why is this and how do i do POST a form?

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

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

发布评论

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

评论(1

套路撩心 2024-10-13 19:53:40

您需要将表单指向绝对 URL,并确保定义了可以处理 HTTP 的 DocumentRequestHandler。 LWUIT 中的 DefaultDocumentRequestHandler 不知道如何处理 HTTP,您可以使用 LWUIT4IO 中的 AsyncDocumentRequestHandlerImpl 或从 LWUIT 浏览器获取 DocumentRequestHandler 代码。

You need to point the form at an absolute URL and make sure you defined a DocumentRequestHandler that can handle HTTP. The DefaultDocumentRequestHandler in LWUIT doesn't know how to handle HTTP, you can use the AsyncDocumentRequestHandlerImpl from LWUIT4IO or get the DocumentRequestHandler code from the LWUIT browser.

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