0

Issue with datebox

asked 2011-01-18 09:42:25 +0800

zippy gravatar image zippy
504 1 2

Hi, i have a issue with a datebox , this is the code

<datebox id="dtbDesde" format="dd/MM/yyyy" 
            				onCreate="self.value = new Date()" mold="rounded" hflex="true"/>

When i selected the datebox, ex: 01/01/2011 and i wrote the date and i forgot some -> 01/012010 (i forgot the / ) , zk reload the date and put in the field any date, (01/12/3000)
How could i fix this situation?? With a listener that check the field onChange?

Thanks :D

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2011-01-18 11:00:27 +0800

twiegand gravatar image twiegand
1807 3

Zippy,

Which version of ZK are you running? When I run your code in 5.0.5 and enter the bad date as you describe (01/012010), I correctly get the error message back from the constraint that says, "You must specify a date. Format: dd/MM/yyyy" once the datebox loses focus.

Maybe I mis-understood your use case.

Todd

link publish delete flag offensive edit

answered 2011-01-18 12:58:16 +0800

zippy gravatar image zippy
504 1 2

:O , i use Zk 5.0.4 , i will be upgrade :D

Thanks :P , my mistake

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-01-18 09:42:25 +0800

Seen: 163 times

Last updated: Jan 18 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More