aspose file tools*
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
Author

HTTP Post to JSF form

Khristian Schonrock
Greenhorn

Joined: Apr 25, 2011
Posts: 1
Hi,
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?
Thanks!
Khristian
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16242
    
  21

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: http://aspose.com/file-tools
 
subject: HTTP Post to JSF form