Mike,
 
I'm just working on a multistep form now.
 
On the wizard question, what about instantiating your bean into session scope? That's what i'm doing.
 
On the Next=> button / multi step process with tabs, here's what i'm doing.
 
First for me was to recognize that the tab navigation allows users to go anywhere they want in the process. The Next=> button only allows forward movement to the next step. So they are different.
 
Second was to place a method in my bean that allows me to set the required fields at each step.
 
Third is to validate each step coming into it to make sure the required fields are set and valid in the bean. If it's not valid, the user is redirected back one step - and the required fields for that step are reset, validation is run, and if it's still not valid, the user is redirected back another step, the required fields are reset, validation method run ... etc. So in other words, if a user starts on step 1 and clicks the tab to step 5 without filling anything in, the validation cascades backwards and they land back on step 1 with the required fields highlighted in red (for instance).
 
A wee bit processing intensive to cascade the validation like that, but it won't happen so often. So it's ok by me.
 
Now, all that's left is to figure out how to submit the form when you click the next tab instead of clicking the Next=> button. If a user clicks any other tab besides the next tab in the sequence, they are just navigating and not really submitting. Sounds like a simple conditional on the tab that says essentially, "if i'm the next step, then i'll insert an in my <a href /> tag.
 
I'll give that a try - i didn't quite figure that part out yet.
 
 
ciao,
Nando
 
PS - whenever there's a form submission in the process, the required fields are reset, which means that the required fields for a submission at step 2 are the same as the required fields to enter into step 3.
 
 -----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Mike Kear
Sent: Sunday, December 11, 2005 4:29 AM
To: [email protected]
Subject: [CFCDev] How to pass a bean from page to page

I am building a multi-page application and I want to pass a bean from one to the other as the user completes the wizard.  How do I pass the bean along with the user?  
 
I dont really want to save the data to the database just yet, until all the information has been collected, if I can avoid it.    Is there a way to pass the bean from page to page?     I guess I can serialise it and save it to a temp database but I'd prefer not to if i can get away without.
 
 
 
 
Also .... a separate but somewhat related issue .... on flash forms,  I have a 4 step wizard form where one of the steps is quite large.  The client insists on using 640 wide screen resolutoin and that means when he gets to the bottom of the form, the tabs at the top are off his screen.  He wants to have a [next step >>> ]  button at the bottom of the form, as well as the tabs at the top.   Can this be done?   How?


--
Cheers
Mike Kear
Windsor, NSW, Australia
Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]

Reply via email to