0
我對如何使用Struts2 displaytag自定義顯示數據有所瞭解:table和decorator。自定義Struts Displaytag表格屬性
但我需要從上面裝飾類方法自定義表中的列(TR型)
public String getWorkFlow() {
WorkOrderDO currentWorkOrder = (WorkOrderDO) getCurrentRowObject();
String output = null;
if (currentWorkOrder.getChildId() == 0) {
if (!currentWorkOrder.isWorkFlowRetrieved()) {
output = "<input type = 'submit' value = 'Work Flow' id=" + currentWorkOrder.getMoveWorkOrderId() + " onclick = 'changeWorkOrder(this);return false;'/>";
} else {
output = "<input type = 'submit' value = 'Work Flow' id=" + currentWorkOrder.getMoveWorkOrderId() + " onclick = 'changeWorkOrder(this);return false;' disabled/>";
}
}
return output;
}
,我們可以自定義數據的外觀和感覺。
但我的問題是,如果currentWorkOrder.isWorkFlowRetrieved() == true
,我想強調在表中的整列(TR)在顯示頁面樣式屬性
任何想法?對於如
我希望這對你的作品列標籤
:
任何解決方案,請! – Reddy