Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTP Post to JSF form

 
Khristian Schonrock
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18304
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic