Well it only took forever to figure out, but turns out it was a Jetty problem.
If you are getting weird results with Jetty 6 - test it out with Jetty 5.

On 2/1/06, Joe Toth <[EMAIL PROTECTED]> wrote:
> I'm working on a simple registration...
> The User database object doesn't have 'confirmEmailAddress' or
> 'confirmPassword' fields so I extended the object and used that
> object.  This is fine, but is there a 'better' way?
>
> My problem is if I goto the form and submit it I get no errors.  But
> if I type anything a field or and it doesn't meet the validation, like
> EmailAddressPatternValidator it will give me an error.
>
> How come its not adding errors when nothing is typed?  I'm using 1.2-0131
>
> Thanks
>
>
>         public ConsumerRegistrationPanel(final String id) {
>                 super(id);
>
>                 final FeedbackPanel feedback = new FeedbackPanel("feedback");
>                 add(feedback);
>
>                 add(new ConsumerRegistrationForm("form"));
>         }
>
>         public final class ConsumerRegistrationForm extends Form {
>
>                 public ConsumerRegistrationForm(final String id) {
>                         super(id, new CompoundPropertyModel(new UserForm()));
>
>                         add(new RequiredTextField("emailAddress")
>                                         .add(LengthValidator.min(1)));
>                         add(new RequiredTextField("confirmEmailAddress")
>                                         
> .add(EmailAddressPatternValidator.getInstance()));
>                         add(new 
> PasswordTextField("password").add(LengthValidator.min(6)));
>                         add(new 
> PasswordTextField("confirmPassword").add(LengthValidator
>                                         .min(6)));
>                 }
>
>                 public final void onSubmit() {
>                     User user = new User();
>                     BeanUtils.copyProperties(user, getModelObject());
>                     session.save(user);
>                 }
>         }
>
>         public class UserForm extends User {
>
>                 String confirmEmailAddress;
>
>                 String confirmPassword;
>
>                 public String getConfirmEmailAddress() {
>                         return confirmEmailAddress;
>                 }
>
>                 public void setConfirmEmailAddress(String 
> confirmEmailAddress) {
>                         this.confirmEmailAddress = confirmEmailAddress;
>                 }
>
>                 public String getConfirmPassword() {
>                         return confirmPassword;
>                 }
>
>                 public void setConfirmPassword(String confirmPassword) {
>                         this.confirmPassword = confirmPassword;
>                 }
>
>         }
>
> }
>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to