论坛首页 入门技术论坛

转贴求助!为什么验证返回的界面select的选项和值变为了空!

浏览 1764 次
该帖已经被评为新手帖
作者 正文
   发表时间:2006-11-08  
为什么验证返回的界面select的选项和值变为了空!
发布: 2006-4-12 下午2:53

输入界面代码:
<html>
<head>
<title>edit Roles</title>
</head>

TsmRole:

<@ww.action id="listGroups" namespace="/sm" name="listGroups"/>
<@ww.iterator value="#listGroups.groups">
userName: <@ww.property value="groupId"/>, realName: <@ww.property value="groupName"/>

</@ww.iterator>
<@ww.form name="form" namespace="/sm" action="saveRole" theme="xhtml" method="POST">
<@ww.textfield label="RoleId" name="role.roleId"/>
<@ww.textfield label="RoleName" name="role.roleName" />
<@ww.select label="GroupName"
name="role.tsmGroup.groupId"
list="#listGroups.groups"
listKey="groupId"
listValue="groupName"
emptyOption="true"
multiple="false"
required="true"
/>
<@ww.submit value="保存" />
</@ww.form>

</body>
</html>

提交后,若验证输入为空,返回输入界面时。
<@ww.action id="listGroups" namespace="/sm" name="listGroups"/>
好象就没有执行。
Select 就为空了?

我遇到类似的问题,求助!
论坛首页 入门技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics