Answers below, > Quoting from a response from Bruce Tate (taken from your link): > > | check out Seaside's online store as an example of a wizard with > | continuations. It's a classic shopping cart. The code: > | > | go > | | shipping billing creditCard | > | cart _ WAStoreCart new. > | self isolate: > | [[self fillCart. > | self confirmContentsOfCart] > | whileFalse]. > | > | self isolate: > | [shipping <- self getShippingAddress. > | billing <- (self useAsBillingAddress: shipping) > | ifFalse: [self getBillingAddress] > | ifTrue: [shipping]. > | creditCard <- self getPaymentInfo. > | self shipTo: shipping billTo: billing payWith: creditCard]. > | > | self displayConfirmation. > > I like this a lot better than spreading the logic over several > components and handlers. >
Well, your page contains just that form, and those couple of pages are just about completing the credit card info, that might be more elegant. This was why I said it can work well with wizards, because that is what it is. However, a framework like Wicket is not only about flow. A very important aspect is how you organize your pages. It the basis of object orientation to be able to categorize ideas and encapsulate their data and behavior. But like I said, I wouldn't be against exploring continuations for Wicket in some contexts - like wizards -, if you have a good idea how this would be combined with component orientation I'd be interested to hear. But like you can read from that TSS thread, I just don't believe in flow-oriented frameworks, and in fact think they put people in the wrong mind set. But that's just me of course ;) Eelco ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
