On 7/28/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > Michael Jouravlev wrote the following on 7/28/2005 6:48 PM: > > > Wizard should be handled by *one* action, then cleanup would be > > simple. Have you found time to look at my stuff? ;-) > > Sorry Michael I have not:( Send me the link again.
No rush :) Though you might like it, because it uses session. On the other hand, you may hate it, because it uses DispatchAction flavor ;) Project link: http://struts.sourceforge.net/strutsdialogs Login/Logout/Signup combo component: http://www.superinterface.com/wizard/signupWizard.do Signup Wizard only: http://www.superinterface.com/strutsdialog/wizardaction.do All samples: http://www.superinterface.com/strutsdialog/index.htm > But, that being said, where clean up becomes a problem is when the user > goes to some other action? I agree one Action helps but what if they > click on some other link from your menu that goes to some other Action? > In other words they don't 'officially' quit the wizard flow. That's when > it becomes a bit of a pain (assuming you care to clean up:) No pain. You just have to decide, do you want to allow people to leave wizard in the middle and then come back, you you do not. If you do, then you leave it as it is, so when they come back to the same component, they would see same page and same data. If you don't want to keep it, then trash the wizard. This should be set per component. There should be set of policies. For example, if you navigate to an action which is not part of any subsession (or scenario, I like this word), do you trash all existing scenarios or you keep them? The downside of my components, is that there can be only one instance of every component per session. Wicket guys, for example, use versions. But their version usage is not very smart, they simply create new version each time a component is accessed. I need to think of better way of creating of several versions to be used either on one page, or in different browser windows. But I am not sure that this is possible... Michael. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]