wizard events

UI Components for JSF
Post Reply
wb61
Posts: 4
Joined: 20 Nov 2009, 12:00

20 Nov 2009, 12:14

I want use the wizard component and detect when user goto next step and make any action.
For exaple, suppose thath I want check if the user exists into a DB.
Into my Wizard bean handler I can write this code:

public class UserWizard {
private User user = new User();
...

public boolean checkUserExist()
{
return MyDAO.existUser(user.getFistname(),user,getLastName();
// or if exist I can load it form DB and put value (street postal etc) into Wizard whith this.setUser( MyDao.loadUser(user.getFistname(),user,getLastName()))
}

But how can I call this method when user goto step 2 ?

Thanks

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

22 Nov 2009, 21:00

Hi,

StepListeners are planned as a new feature request, please see;

http://primefaces.prime.com.tr/forum/vi ... ?f=3&t=823

For now I think you can use the client side api, wizard has a simple api like wizard.previous() and wizard.next(). Calling these javascript methods based on the outcome should work.

wb61
Posts: 4
Joined: 20 Nov 2009, 12:00

23 Nov 2009, 09:45

Thanks for your replay, but your link information points at it self.
I think that you mean http://primefaces.prime.com.tr/forum/vi ... zard#p2034 .
However I think that nextNavListener-prevNavListener future implementations are good solution.
I hope to get it shortly.

Bye

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

24 Nov 2009, 11:47

Sorry correct link is : http://code.google.com/p/primefaces/iss ... ail?id=329

Yes, now 1.0.0.RC is released, we'll spent our time on enhancing current components and fixing bugs rather than adding new components for 1.0.0. Wizard is one of them.

Thanks for the feedback!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 45 guests