0
<tr>
<td valign="top" width="150">
<label for="MFYR">Maximum Factory Year</label>
<!-- <label for="MFYR"><span style="color: rgb(255, 51, 0);" class="fnt">*</span></label></td> SKL-->
<span id="MFYR" style="color: rgb(255, 51, 0);" class="fnt">*</span>

<td width="7"><br />
</td>
<td valign="top" width="140">
<%-- <html:text styleId="MFYR" property="maximumFactotyYear" size="15"  styleClass="iform" /></td> --%>
<html:text id="MFYR" property="maximumFactotyYear" size="15" styleClass="iform"

/>

这是那里的代码。现在使用 Rational Policy Tester(RPT),我遇到了“每个表单控件必须有关联的文本”的策略违规。...请有人帮我解决这个问题。提前致谢

4

1 回答 1

0

尝试更改 的 id <span id="MFYR">,因为它与您的 id 冲突<html:text>。这大概就是<label>迷茫的原因吧。

于 2014-11-27T12:46:58.627 回答