开发者

LWUIT: How to POST a form with HTMLComponent

I hava form that shows well开发者_如何学JAVA, 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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜