【发布时间】:2018-03-13 10:40:23
【问题描述】:
我正在使用 f:field 来呈现自定义 Cmd 对象。
class CustomCmd implements Validateable {
String user
String password
static constraints = {
user blank: false, email: true
password blank: false, password:true
}
}
然后在我的 gsp 页面中我使用
<fieldset class="form">
<f:with bean="${cmd}">
<f:field property="user"/>
<f:field property="password"/>
</f:with>
</fieldset>
密码未显示在页面上(带有标准****项目符号):该字段没有值,但用户字段填充了正确的值。
有没有办法使用 f:field 标签来填充密码字段?
【问题讨论】: