0

Multiple date constraint prevents calendar days from getting disabled [closed]

asked 2013-04-15 17:07:44 +0800

cvarona gravatar image cvarona
554 1 6

Hi,

I've discovered that the very useful before/after date constraints on datebox fail to disable the calendar days not complying with the specified restriction if some other constraint is specified. Just try the following in the online zk sandbox

<datebox id="db" width="150px" constraint="no empty, before 20130420" />

and compare it with

<datebox id="db" width="150px" constraint="before 20130420" />

With kind regards

César Varona

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by cvarona
close date 2013-04-17 09:12:58

1 Answer

Sort by » oldest newest most voted
2

answered 2013-04-16 08:49:17 +0800

francishsiao gravatar image francishsiao
145 2

It has been identified as a ZK bug, and has been posted in the following link
http://tracker.zkoss.org/browse/ZK-1718
Please follow the link to get the latest status.

However, you can put the "before 20130420" at the first place of the constraint like:

<datebox id="db1" width="150px" constraint="before 20130420, no empty" />

the "disable" would works.

link publish delete flag offensive edit

Comments

Actually, using constraint="no empty,before 20130420", no any space after comma, works too.

francishsiao ( 2013-04-19 09:47:08 +0800 )edit

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-04-15 17:07:44 +0800

Seen: 42 times

Last updated: Apr 16 '13

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