diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/ADButtonTabList.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/ADButtonTabList.java index f2e65dcf29..b1590169e6 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/ADButtonTabList.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/ADButtonTabList.java @@ -16,6 +16,7 @@ package org.adempiere.webui.component; import java.util.ArrayList; import java.util.List; +import org.adempiere.webui.AdempiereIdGenerator; import org.adempiere.webui.component.ADTabListModel.ADTabLabel; import org.zkoss.zhtml.Button; import org.zkoss.zhtml.Text; @@ -73,6 +74,7 @@ public class ADButtonTabList extends Panel implements IADTabList, EventListener ADTabLabel tabLabel = (ADTabLabel) items[i]; Button button = new Button(); button.setDynamicProperty("Title", tabLabel.description); + button.setAttribute(AdempiereIdGenerator.ZK_COMPONENT_PREFIX_ATTRIBUTE, "ADButtonTab" + i); Text text = new Text(tabLabel.label); button.appendChild(text); int s = tabbox.getSelectedIndex();