Hi

I'm developing a JSF webapp which works like a 'wizard' where the user
steps though
several pages(or steps). The main navigation control are links like
'next', 'previous', and 'cancel'.  I've done a couple of these
'wizard'-style apps, each very different in structure.

I'm looking for suggestions for what you've found to work well in this
type of application.


My previous 2 weak attempts of a wizard-style app is as follows.
My first app has one managed bean for the entire wizard with all
validation and wizard logic in that one bean(and supporting POJOs).
Using one backing bean made it easier for reuse of page layout and
navigation controls, and made it easy to skip steps dynamically at
runtime. But it grew very large and not very pretty.

My second app has one backing bean per 'step'. But I couldn't find an
obvious way of reuse page layout and navigation controls across all
the managed beans. So each page is bound to its own backing bean with
'next', 'previous' and 'cancel' action methods. And sometimes a
backing bean had to know which page was the previous and the next
step.

Hope someone can help

regards,
Henrik

Reply via email to