Java jmesa:行唯一属性值为空
我正在试用jmesa 在jmesa中,我正在创建一个工作表。然而,我得到的这个错误并没有告诉我太多Java jmesa:行唯一属性值为空,java,jmesa,Java,Jmesa,我正在试用jmesa 在jmesa中,我正在创建一个工作表。然而,我得到的这个错误并没有告诉我太多 java.lang.IllegalStateException: The row unique property value is null! You need to specify the uniqueProperty on the row. 这是我的密码 <jmesa:tableModel id="tag" items=
java.lang.IllegalStateException: The row unique property value is null! You need to specify the uniqueProperty on the row.
这是我的密码
<jmesa:tableModel
id="tag"
items="${people}"
var="bean"
editable="true"
>
<%--editable="true"--%>
<jmesa:htmlTable caption="People you may know" width="900px" >
<jmesa:htmlRow>
<jmesa:htmlColumn property="selected" editable="true"
worksheetEditor="org.jmesa.worksheet.editor.CheckboxWorksheetEditor" title="selected" filterable="false" sortable="false"/>
<jmesa:htmlColumn property="firstName" editable="false"/>
<jmesa:htmlColumn property="lastName" title="Last Name" editable="false"/>
<jmesa:htmlColumn property="phone" title="Phone Number" editable="false"/>
<jmesa:htmlColumn property="address" title="Address" sortable="false" style="address" />
</jmesa:htmlRow>
</jmesa:htmlTable>
</jmesa:tableModel>
</form>
此解决方案包含3个部分。我需要:
- 将此属性添加到标签:
uniqueProperty=“id”
- 将名为“id”的属性添加到Person类,它是该类的唯一标识符
- 根据将工作表Servlet添加到my web.xml文件中