Revision history [back]

click to hide/show revision 1
initial version

asked 2009-05-05 06:42:43 +0800

achuanok gravatar image achuanok

A ZK Constraint Bug

一个关于正则表达式的bug,请教大家这个是不是一个zk bug。 <zk> <window id="win_test" &gt;="" <textbox="" id="txt_test" constraint="/[a-z\\]*/"></textbox> </window> </zk> I am using zk 3.6.1

first: at textbox input a char '-', the constraint pass, continue input a char 'a', appear the information "Illegal value". this is a zk bug? Excuse me! My english is poor.

thanks hideokidd, my mistake, the the Constraint is constraint="/[a-z\]/", is not constraint="//"

第一次在这个页面输入字符 - ,即一个小横线。正则表达式无效,通过了校验。如果再输入 a ,则出现格式不正确的提示信息。 这是不是zk的一个bug。

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