IntelliJ Java IDE
The moose likes JSF and the fly likes Submitting multiple parameters on jsf Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Submitting multiple parameters on jsf" Watch "Submitting multiple parameters on jsf" New topic
Author

Submitting multiple parameters on jsf

Kingsley Mullers
Ranch Hand

Joined: Jan 14, 2005
Posts: 48
i've created tabbed panes like this, one containing personal details, one containing address details, one containing account details and so on so forth. All these jsf pages contain a command button called next to tab to the next page until the last one which actually submit data to the database. How do i submit this data, do i submit it page by page or store the data somewhere and submit data all at once?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 12513

If you define a single form and place the entire set of tabs within it, all the items from all the tabs will be transmitted whenever you click any of the submit buttons within that form.

If you want the information to be transmitted to the server in stages, put a form within each tab definition and give each form a submit/next button.
[ February 25, 2008: Message edited by: Tim Holloway ]

One of the most odious afflictions that Business has inflicted on the modern English language is "pro-active". Most of the time it's simply redundantly used in place of the simple old word "active". And a good deal of the rest of the time it means "You're not overworked enough yet, so go out and find more!"
Kingsley Mullers
Ranch Hand

Joined: Jan 14, 2005
Posts: 48
thanks for your response, but if you want to pass these values to a business delegate bean obviously in a single object, would that have a different approach?
 
 
subject: Submitting multiple parameters on jsf
 
Threads others viewed
Re-Render Problem after ValidationException
JSF Request Processing Lifecycle Basics
Registration with steps
rendered causing setter method of backend bean not invoking
success alert using javascript
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture