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
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.
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
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
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
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)
@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
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
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
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
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
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
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
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
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
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
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
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
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
19 matches
Mail list logo