Re: DatePicker Validation

2007-03-13 Thread Jesse Kuhnert

Javascript does support a Date() object which is very similar to the
java.util.Date object. (in fact it was designed with the java Date in
mind ...as odd as that may be..)

You should have more than enough Date comparison functions available
to you by using one of the tapestry Calendar object functions to get
the value and compare things.

The workbench demo has an example of triggering things when values are
set, but it does it through server side conventions:

http://opencomponentry.com:8080/workbench/Home,$Border.pageLink.sdirect

On 3/13/07, Marcos Chicote <[EMAIL PROTECTED]> wrote:

Thanks!
I have the book and i have read most of it.
However I thought there might be a simpler way of validating this without
writing an ugly month-translating javascript function.


- Original Message -
From: "Peter Schröder" <[EMAIL PROTECTED]>
To: "Tapestry users" 
Sent: Monday, March 12, 2007 5:35 AM
Subject: AW: DatePicker Validation


hi marcos,

there is no default way in tapestry to validate multiple input fields.

you can do it programmatically in your component with the help of validtion
delegate.

take a look at this book http://www.agileskills2.org/EWDT/


-Ursprüngliche Nachricht-
Von: Marcos Chicote [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 9. März 2007 18:43
An: Tapestry users
Betreff: DatePicker Validation

Hello!

I'm using Tapestry 4.0 to develop a page with 2 DatePickers. I want to
check, in the client, if one of the date's is previous to the other.

Can anybody help me on how to do this??

Do I need to write a function in javascript to parse the date and then
compare? Isn't there any other nicer way? (or maybe somebody already has the
funcion programmed).

Thanks!

Marcos


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DatePicker Validation

2007-03-13 Thread Marcos Chicote
Thanks!
I have the book and i have read most of it.
However I thought there might be a simpler way of validating this without
writing an ugly month-translating javascript function.


- Original Message - 
From: "Peter Schröder" <[EMAIL PROTECTED]>
To: "Tapestry users" 
Sent: Monday, March 12, 2007 5:35 AM
Subject: AW: DatePicker Validation


hi marcos,

there is no default way in tapestry to validate multiple input fields.

you can do it programmatically in your component with the help of validtion
delegate.

take a look at this book http://www.agileskills2.org/EWDT/


-Ursprüngliche Nachricht-
Von: Marcos Chicote [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 9. März 2007 18:43
An: Tapestry users
Betreff: DatePicker Validation

Hello!

I'm using Tapestry 4.0 to develop a page with 2 DatePickers. I want to
check, in the client, if one of the date's is previous to the other.

Can anybody help me on how to do this??

Do I need to write a function in javascript to parse the date and then
compare? Isn't there any other nicer way? (or maybe somebody already has the
funcion programmed).

Thanks!

Marcos


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: DatePicker Validation

2007-03-12 Thread Peter Schröder
hi marcos,

there is no default way in tapestry to validate multiple input fields.

you can do it programmatically in your component with the help of validtion 
delegate.

take a look at this book http://www.agileskills2.org/EWDT/
 

-Ursprüngliche Nachricht-
Von: Marcos Chicote [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 9. März 2007 18:43
An: Tapestry users
Betreff: DatePicker Validation

Hello!

I'm using Tapestry 4.0 to develop a page with 2 DatePickers. I want to
check, in the client, if one of the date's is previous to the other.

Can anybody help me on how to do this??

Do I need to write a function in javascript to parse the date and then
compare? Isn't there any other nicer way? (or maybe somebody already has the
funcion programmed).

Thanks!

Marcos


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DatePicker Validation

2007-03-09 Thread Marcos Chicote
Hello!

I'm using Tapestry 4.0 to develop a page with 2 DatePickers. I want to
check, in the client, if one of the date's is previous to the other.

Can anybody help me on how to do this??

Do I need to write a function in javascript to parse the date and then
compare? Isn't there any other nicer way? (or maybe somebody already has the
funcion programmed).

Thanks!

Marcos


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]