Can h:CommandLink POST to an external URL?
I'm working on a Seam application and need to submit some form data to an external URL only I'm a bit stumped as to how I should approach it.
h:CommandLink is the ideal tool only it doesn't seem to be able to PO开发者_JAVA百科ST to an external URL. Any ideas?
Use a normal HTML form. Since there's nothing to bind to your business/model layer, you don't need JSF components at all.
<form action="http://example.com" method="post">
<input type="text" name="foo" />
<input type="submit" />
</form>
精彩评论