IDEMPIERE-92 - Integrate Selenium / fix problem with WAcctViewer

14:15:30.889===========> zkoss.handleError:1352: >>java.lang.IllegalArgumentException: There is no WTableColumn at column 0
>>	at org.adempiere.webui.component.WListItemRenderer.getColumn(WListItemRenderer.java:123)
This commit is contained in:
Carlos Ruiz 2012-12-17 14:17:58 -05:00
parent 5495a2f2cb
commit 4d96865590
1 changed files with 5 additions and 3 deletions

View File

@ -195,9 +195,11 @@ public class WListItemRenderer implements ListitemRenderer<Object>, EventListene
int rowIndex, int columnIndex)
{
ListCell listcell = new ListCell();
WTableColumn column = getColumn(columnIndex);
if (column != null && column.getHeaderValue() != null) {
listcell.setWidgetAttribute(AdempiereWebUI.WIDGET_INSTANCE_NAME, column.getHeaderValue().toString());
if (m_tableColumns.size() > columnIndex) {
WTableColumn column = getColumn(columnIndex);
if (column != null && column.getHeaderValue() != null) {
listcell.setWidgetAttribute(AdempiereWebUI.WIDGET_INSTANCE_NAME, column.getHeaderValue().toString());
}
}
boolean isCellEditable = table != null ? table.isCellEditable(rowIndex, columnIndex) : false;