Set zk component id prefix for selenium test support.

This commit is contained in:
Heng Sin Low 2011-02-07 17:50:05 +08:00
parent 02c41740fa
commit 23bd9decf2
1 changed files with 2 additions and 0 deletions

View File

@ -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();