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
wizard events
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
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.
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.
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
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
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
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!
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!
-
- Information
-
Who is online
Users browsing this forum: No registered users and 45 guests