File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes HTTP Post to JSF form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "HTTP Post to JSF form" Watch "HTTP Post to JSF form" New topic

HTTP Post to JSF form

Khristian Schonrock

Joined: Apr 25, 2011
Posts: 1
I'm trying to figure out a way to post a form to an existing JSF page, but I've had no success so far.
On the page I use a richfaces fileUpload component to upload files. What I'm trying to do is create a POST request in a java HTTP client to be called from an applet.
Is this even possible? Or should I focus on other approaches (as servlets or web services) to upload files from my applet?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

JSF is a Model/View/Controller architecture. All the real excitement happens in the backing beans (Model). If you update the properties of the backing bean, the next time the JSF View is displayed, its form will be populated based on those properties. You'll almost certainly need to create the backing bean in session scope, and if the applet is where the bean is first referenced, you'll need server-side code (usually a servlet or non-JSF JSP) to construct the backing bean manually, since only JSF can automatically construct backing beans.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: HTTP Post to JSF form
It's not a secret anymore!