myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Müllan" <bierbra...@gmail.com>
Subject Re: Using myfaces for a wizard type application
Date Sat, 18 Nov 2006 15:27:56 GMT
Hi,

well, t:saveState should exactly fit your needs in this case and it
doesn`t come with any burden.

Just use it in your wizard page like this:

<t:saveState value="#{yourWizardPageBean}"/>

The "yourWizardPageBean" then is a kind of representation of the whole
wizard steps.
For instance, you can use Enums for each wizard panel, initialize them
on creating the bean (in the correct order) and render the
corresponding wizard pages regarding the actual step.

Alternatively, you can also do it the way shown in [1], which is more
or less the same.

Hope this helps,

cheers,

Gerald

[1] http://example.irian.at/example-sandbox-20061118/scopeshop/page1.jsf

On 11/18/06, ying lcs <yinglcs@gmail.com> wrote:
> Hi,
>
> Can you please tell me how can I use myfaces to implement a wizard
> type application?
>
> 1. User go to a page, fill in a form. pass to second page
> 2. the second page is built based on information from page #1
> 3. user fill in second pages, go to third page.
>
> When user clicks 'cancel' or finish the wizard all the user filled
> data is gone.
>
> Any pointer/example is appreciated.
>


-- 
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Mime
View raw message