I just released the first version of my
Wizards for Vaadin add-on (Apache License 2.0). The purpose of the add-on is to simplify the creation of multi-step wizards for your Vaadin applications. See the live demo
here .
Please keep in mind that this is just the first release and I would really like you to try it out and give me some feedback for future improvements. This also means that the API will most likely be changed in the future releases along with some new features.
The project is hosted at
Google Project Hosting along with the Git repository for the source code.
I don’t see any reason why it shouldn’t work inside Liferay as long as you have a Vaadin application and you have compiled the widgetset to include the add-on. Haven tried it in Liferay myself though.
We have a similar need and we built a similar API actually.
I think one major improvement would be to allow the user to configure the UI elements himself, that is:
Progress bar
Back button
Next button
Finish button
I don’t know if this is the case but taking into account the wizard that have lots of steps and/or long captions by allowing the progress bar to be vertical close (left or right) to the actual step component.
Low priority but you probably need a WizardStepCompletedEvent
On the next release I’ll be focusing on giving the developer more freedom in implementing their own replacement for the progress bar and positioning the control buttons.
I just released a version 0.2.0 of the
Wizards for Vaadin in the Vaadin Directory.
This release contains some bug fixes and also the API has changed a bit, see the
Getting Started guide for some details. Most importantly the progress bar is not displayed by default anymore but the new API allows you to provide your own header instead. Of course you can still use the provided default progress bar (see the code example in
wiki or on the
Directory ).
The add-on is still on experimental stage and the API is likely to change. At least on the next release I’ll be making the customization of control buttons more flexible.
Just wanted to mention that I recently rewrote the demo application. The new demo also works as a tutorial on how to use the
Wizards for Vaadin add-on .
I could not download the source code for this Wizard Addon. When I click on Download, its redirecting to home page. Could you please give me the link to download?
do you mean that the Directory page of the add-on redirects you to the vaadin.com home page?
In any case, the download from Directory requires signing in to the website. So sign in to vaadin.com and then go to the
Wizards for Vaadin add-on page for download.
If you are looking for just the source code, you can get it also from the
project page .
The Wizard itself doesn’t have any mechanism for carrying values between the steps. So this is something you have to implement yourself.
Basically a simple way would be to have a method in the first step to return the value of the TextField and then keep a reference to the first step in the second step. Or the second step could implement a ValueChangeListener and be assigned as a listener for the TextField that is inside the first step.
you could implement your own
WizardProgressListener , register it to the
Wizard and act on the
activeStepChanged event. The
WizardStepActivationEvent contains information on what step just got activated.
Or if you need to do something before the next step is actually activated, you could react to the user clicking on the next within the
onAdvance method of your third
WizardStep .
The latest version 0.4.0 (released yesterday) also has public
next() ,
back() ,
finish() and
cancel() methods that you can call yourself.
Hopefully these ideas will get you forward. If you have any suggestions how the API could be improved to better serve your use case, I’m eager to hear about it.