我使用显示标签以表格形式显示数据。我们希望添加新的可编辑行,以便在表中添加新记录。如果表有一个或多个记录,我可以在表的末尾添加一个可编辑的行并保存。
如果表没有任何记录,如何添加新的可编辑行?
发布于 2014-03-18 06:32:38
你可以试试这个:
<s:if test="%{list.size == 0}">
// create an HTML table with an <input> in a column to add records
</s:if>
<s:else>
// your display table with decorator to add new records
</s:else>https://stackoverflow.com/questions/22471384
复制相似问题