IDEMPIERE-92 - Integrate Selenium. Use widgetAttribute instead of widget id to avoid non-unique id runtime error.

This commit is contained in:
Heng Sin Low 2012-12-14 13:59:07 +08:00
parent 8d9cf8f141
commit 83631f7277
1 changed files with 4 additions and 1 deletions

View File

@ -108,8 +108,11 @@ public abstract class WEditor implements EventListener<Event>, PropertyChangeLis
}
this.setComponent(comp);
comp.setId(gridField.getColumnName()+(rowIndex >= 0 ? "_" + rowIndex : ""));
this.gridField = gridField;
comp.setWidgetAttribute("columnName", gridField.getColumnName());
if (gridField.getGridTab() != null) {
comp.setWidgetAttribute("qualifiedColumnName", gridField.getGridTab().getTableName()+"."+gridField.getColumnName());
}
this.setMandatory(gridField.isMandatory(false));
this.readOnly = gridField.isReadOnly();
this.description = gridField.getDescription();