Re: Date Validation - message formatting

2009-10-23 Thread Igor Vaynberg
no, there isnt. not that i can see anyways. you will have to roll your own validator and convert the date into a string however you see fit. also, please add an rfe to have this fixed. -igor On Fri, Oct 23, 2009 at 7:09 AM, Jeffrey Schneller wrote: > I looked around and saw various discussions o

Date Validation - message formatting

2009-10-23 Thread Jeffrey Schneller
I looked around and saw various discussions on how to format the date for the error message in the DateValidator. Was there a fix for this? I am using DateValidator.minimum and I would like the date that is the minimum to be formatted with just MMM-dd- or dd-MMM- based on the locale.

Re: Date validation in a form / Javascriupt generation at the client side

2009-09-25 Thread Pedro Santos
I would like to know How I can validate the string date inputted by a user in a textfield of my form ? you can use: org.apache.wicket.datetime.markup.html.form.DateTextField ex: DateTextField date = DateTextField.forDatePattern("date", "dd/MM/"); This component will validate the inputs against

Date validation in a form / Javascriupt generation at the client side

2009-09-25 Thread Charles Moulliard
I would like to know How I can validate the string date inputted by a user in a textfield of my form ? e.g : The SimpleDateformat to be used to create a java Date is : dd/MM/ So I would like to check that the user has well introduced its date using this format in the html field. Is it possibl

Re: Date validation in a form

2009-09-24 Thread Reinout van Schouwen
Hi, Op woensdag 23-09-2009 om 10:38 uur [tijdzone -0700], schreef Igor Vaynberg: > see DateTextField in extensions > > > e.g : The SimpleDateformat to be used to create a java Date is : dd/MM/ > > So I would like to check that the user has well introduced its date > > using this format I hap

Re: Date validation in a form

2009-09-24 Thread Per Lundholm
Hi! Don't forget to setLenient false. Hope snippet below is enough. /Per public final class LocalDateFormatValidator extends StringValidator { private static final long serialVersionUID = 1L; private final SimpleDateFormat dateFormat; public LocalDateFormatValidator(Locale locale)

AW: Date validation in a form

2009-09-24 Thread Giambalvo, Christian
@wicket.apache.org Betreff: Date validation in a form I would like to know How I can validate the string date inputted by a user in a textfield of my form ? e.g : The SimpleDateformat to be used to create a java Date is : dd/MM/ So I would like to check that the user has well introduced its date

Date validation in a form

2009-09-24 Thread Charles Moulliard
I would like to know How I can validate the string date inputted by a user in a textfield of my form ? e.g : The SimpleDateformat to be used to create a java Date is : dd/MM/ So I would like to check that the user has well introduced its date using this format Regards, Charles Moulliard Seni

Re: Date validation in a form

2009-09-23 Thread Igor Vaynberg
see DateTextField in extensions -igor On Wed, Sep 23, 2009 at 7:13 AM, Charles Moulliard wrote: > I would like to know How I can validate the string date inputted by a > user in a textfield of my form ? > > e.g : The SimpleDateformat to be used to create a java Date is : dd/MM/ > So I would

Date validation in a form

2009-09-23 Thread Charles Moulliard
I would like to know How I can validate the string date inputted by a user in a textfield of my form ? e.g : The SimpleDateformat to be used to create a java Date is : dd/MM/ So I would like to check that the user has well introduced its date using this format Regards, Charles Moulliard Seni

Date Validation - From - To Dates

2009-08-12 Thread T Ames
I have coded a simple Validator below that may help others out who are looking for a way to make sure that a from-date and a to-date on a form fall within a proper range of each other. Meaning that a from date cannot be greater than a to date. I did this based on an older post of the same subject

Re: Date Validation

2008-05-21 Thread Igor Vaynberg
see IFormValidator and its implementations -igor On Wed, May 21, 2008 at 7:13 AM, Tim Sarver <[EMAIL PROTECTED]> wrote: > How does one validate two dates with one another on the same form? As seen > in the snippets below, I've added the validators in the onSubmit() of the form > which actually w

Re: Date Validation

2008-05-21 Thread James Carman
Use a custom validator? On Wed, May 21, 2008 at 10:13 AM, Tim Sarver <[EMAIL PROTECTED]> wrote: > How does one validate two dates with one another on the same form? As seen > in the snippets below, I've added the validators in the onSubmit() of the form > which actually works, though not on the f

Date Validation

2008-05-21 Thread Tim Sarver
How does one validate two dates with one another on the same form? As seen in the snippets below, I've added the validators in the onSubmit() of the form which actually works, though not on the first time the form is submitted only on subsequent submittals. Could someone throw me a bone on how

Re: Date validation

2008-01-08 Thread Marco Aurélio Silva
Simple solution... thank you! On Jan 8, 2008 12:38 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > You should set the type to Date by either using the appropriate > constructor or by calling setType. > > Eelco > > > On Jan 8, 2008 10:16 PM, Marco Aurélio Silva <[EMAIL PROTECTED]> wrote: > > Wicke

Re: Date validation

2008-01-08 Thread Eelco Hillenius
You should set the type to Date by either using the appropriate constructor or by calling setType. Eelco On Jan 8, 2008 10:16 PM, Marco Aurélio Silva <[EMAIL PROTECTED]> wrote: > Wicket 1.2.6 > > I'm using this code: > > RequiredTextField dateField = new RequiredTextField("dueDate", new > Propert

Re: Date validation

2008-01-08 Thread Marco Aurélio Silva
Wicket 1.2.6 I'm using this code: RequiredTextField dateField = new RequiredTextField("dueDate", new PropertyModel (newsItem, "dueDate")); form.add(dateField); form.add(new DatePicker("dateFieldPicker", dateField)); Anyway, I solved the problem creating a "SimpleDateValidator" public c

Re: Date validation

2008-01-08 Thread Eelco Hillenius
What version of Wicket/ which component? Eelco On Jan 8, 2008 9:34 PM, Marco Aurélio Silva <[EMAIL PROTECTED]> wrote: > Hi > > I'm having problems with validation on a date field. Is there a easy > way to validate user input on date fields? If user types a invalid > date like "32-01-2008" I got a

Date validation

2008-01-08 Thread Marco Aurélio Silva
Hi I'm having problems with validation on a date field. Is there a easy way to validate user input on date fields? If user types a invalid date like "32-01-2008" I got a ConversionException: wicket.util.convert.ConversionException: Cannot parse '32-01-2008' using format [EMAIL PROTECTED] at wic