• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF forms

 
john kikuvi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do i post php form contents to a jsf form?
 
Tim Holloway
Bartender
Posts: 18412
58
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Javaranch, John!

You don't.

JSF h:form elements have to be rendered and read by JSF. They contain additional meta-data not found in ordinary HTML forms.

What you can do is post PHP to a non-JSF URL in your webapp such as a REST processor or a servlet that then stores the incoming form data in a session-scope javabean. That javabean can then be referenced by JSF as a managed object.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!