根据VO对象中的流水号是否为空,设置隐藏域的值
<s:if test='null == obj.seqNo and obj.seqNo == "".toString()'>
<s:hidden id="seqFlag" value="Y" />
</s:if>
<s:else>
<s:hidden id="seqFlag" value="N" />
</s:else>
根据VO对象中的商品信息List是否为空,来确定商品信息的显示
<s:if test="obj.goodsList.size() == 0">
<s:textfield name="obj.goodsList[0].goodsNo" id="goodsNo_0" />
</s:if>
<s:iterator value="obj.goodsList" status="st">
<s:textfield name="obj.goodsList[%{#st.index}].goodsNo" id="goodsNo_%{#st.index+1}" />
</s:iterator>
循环商品信息,根据当前商品信息的状态,判断当前按钮是否可修改
<s:iterator id="ent" value="goodsList" status="st">
<input type="button" value="修改"
<s:if test="%{#ent.status_flag == '1100'}">
disabled="disabled" class="gray"
</s:if>
<s:else>
class="blue"
</s:else>
οnclick="update('<s:property value='uuid'/>');"
/>
</s:iterator>
<s:if test='null == obj.seqNo and obj.seqNo == "".toString()'>
<s:hidden id="seqFlag" value="Y" />
</s:if>
<s:else>
<s:hidden id="seqFlag" value="N" />
</s:else>
根据VO对象中的商品信息List是否为空,来确定商品信息的显示
<s:if test="obj.goodsList.size() == 0">
<s:textfield name="obj.goodsList[0].goodsNo" id="goodsNo_0" />
</s:if>
<s:iterator value="obj.goodsList" status="st">
<s:textfield name="obj.goodsList[%{#st.index}].goodsNo" id="goodsNo_%{#st.index+1}" />
</s:iterator>
循环商品信息,根据当前商品信息的状态,判断当前按钮是否可修改
<s:iterator id="ent" value="goodsList" status="st">
<input type="button" value="修改"
<s:if test="%{#ent.status_flag == '1100'}">
disabled="disabled" class="gray"
</s:if>
<s:else>
class="blue"
</s:else>
οnclick="update('<s:property value='uuid'/>');"
/>
</s:iterator>