Yes, looking at what RĂ¼diger told I've found this way of doing as well
and was going for it :)

Thanks a lot
++
ZedroS

On 3/12/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> You could try this:
>
> pw1 = new PasswordTextField("password", new PropertyModel(user, "password"));
> pw2 = new PasswordTextField("confirm", new Model(""));
> form.add(pw1);
> form.add(pw2);
> form.add(new EqualPasswordInputValidator(pw1, pw2));
>
> Martijn
>
> On 3/12/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote:
> > Hi
> >
> > In my register page, I have a PasswordTextField for the confirmation 
> > password.
> >
> > For sure, this field isn't stored in my model, and thus I've a
> > mismatch between it and my model object.
> >
> > For sure, I could inherit my User object and then add this
> > confirmPassword field in it and then, onSubmit, create a brand new
> > User and then save it. However, this method implies quite a large
> > amount of work and so I'm wondering whether there is a better way to
> > deal with such issue.
> >
> > What would you suggest ?
> >
> > Thanks in advance
> > ZedroS
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > opinions on IT & business topics through brief surveys-and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> --
> Learn Wicket at ApacheCon Europe: http://apachecon.com
> Join the wicket community at irc.freenode.net: ##wicket
> Wicket 1.2.5 will keep your server alive. Download Wicket now!
> http://wicketframework.org
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to