[Tapestry4] 用validator的name=value[message] ,message在页面为何不显示

shfzhzhr 2008-03-25
我用的是4.1.5版本,以下是页面规范中的配置
<component id="username" type="TextField">
        <binding name="value" value="username"/>
        <binding name="validators" value="validators:required[username required],minLength=6[too short]" />

      </component>
   
    <component id="password" type="TextField">
        <binding name="value" value="password"/>
        <binding name="hidden" value="true" />
        <binding name="validators" value="validators:required[password  required],minLength=6[too short]" />

但是当输入出错只是显示两个*号   不显示我的出错信息  为什么?
tapestry 2008-03-25
设置form的客户验证为true,还不行,用firebug看是不是js加载错误
eric2002cn 2008-03-29
<component id="regForm" type="Form">
          <binding name="listener" value="listener:regSubmit"/>
          <binding name="clientValidationEnabled" value="true"/>
    </component>

<binding name="displayName" value="literal:【昵称】"/>

在模板里加上Shell如<html jwcid="@Shell" title="aa">

我以前也遇到这种情况,后来就是这样解决的
Global site tag (gtag.js) - Google Analytics