This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
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: 16386

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.

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: HTTP Post to JSF form